mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 08:41:29 +00:00
sanity_check: do not invoke PDO without checking that it exists
This commit is contained in:
@@ -90,7 +90,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SINGLE_USER_MODE) {
|
if (SINGLE_USER_MODE && class_exists("PDO")) {
|
||||||
$pdo = DB::pdo();
|
$pdo = DB::pdo();
|
||||||
|
|
||||||
$res = $pdo->query("SELECT id FROM ttrss_users WHERE id = 1");
|
$res = $pdo->query("SELECT id FROM ttrss_users WHERE id = 1");
|
||||||
|
|||||||
Reference in New Issue
Block a user