We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc8433 commit 6f921f3Copy full SHA for 6f921f3
public_html/lists/admin/connect.php
@@ -1558,21 +1558,14 @@ function Help($topic, $text = '?')
1558
*/
1559
function isPrivateList($listid) {
1560
1561
- $activeVal = Sql_Query(sprintf('
+ $activeList = Sql_Fetch_Row_Query(sprintf('
1562
SELECT active
1563
FROM %s
1564
WHERE id = %d',
1565
$GLOBALS['tables']['list'], sql_escape($listid))
1566
);
1567
1568
- while ($row = Sql_Fetch_Row($activeVal)) {
1569
- $activeVal = $row[0];
1570
- }
1571
-
1572
- if ($activeVal == 0) {
1573
- return true;
1574
- } else
1575
- return false;
+ return $activeList[0] == 0;
1576
}
1577
1578
// Debugging system, needs $debug = TRUE and $verbose = TRUE or $debug_log = {path} in config.php
0 commit comments