1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-27 21:07:12 +00:00

remove $link

This commit is contained in:
Andrew Dolgov
2013-04-17 16:23:15 +04:00
parent aca75cb5cb
commit 6322ac79a0
80 changed files with 1624 additions and 1727 deletions

View File

@@ -21,7 +21,7 @@
return $url_path;
}
function initial_sanity_check($link) {
function initial_sanity_check() {
$errors = array();
@@ -88,14 +88,10 @@
}
if (SINGLE_USER_MODE) {
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
$result = db_query( "SELECT id FROM ttrss_users WHERE id = 1");
if ($link) {
$result = db_query($link, "SELECT id FROM ttrss_users WHERE id = 1");
if (db_num_rows($result) != 1) {
array_push($errors, "SINGLE_USER_MODE is enabled in config.php but default admin account is not found.");
}
if (db_num_rows($result) != 1) {
array_push($errors, "SINGLE_USER_MODE is enabled in config.php but default admin account is not found.");
}
}
@@ -202,6 +198,6 @@
}
}
initial_sanity_check($link);
initial_sanity_check();
?>