# # # patch "www/index.php" # from [19260ebd2eaa4f8d38c0f5ababadbad31c6dd1af] # to [2e34c6a413fe3b880f2178e45f6fb486551deb8e] # ============================================================ --- www/index.php 19260ebd2eaa4f8d38c0f5ababadbad31c6dd1af +++ www/index.php 2e34c6a413fe3b880f2178e45f6fb486551deb8e @@ -60,9 +60,9 @@ #$query = "SELECT name, directory FROM projects WHERE name NOT IN (SELECT project FROM permissions WHERE username = '%s')"; $query = "SELECT name FROM projects WHERE name NOT IN (SELECT project FROM permissions WHERE username=?)"; $result = $db->Execute($query, array($username)); -if (!$result) {printf("ERROR"); } -$rows = $result->RecordCount(); -if ($rows > 0) { +if (!$result) + printf("ERROR"); +else { printf("

Projects you don't help maintain:

"); while (!$result->EOF) { $row = $result->FetchRow();