sanity_check: do not invoke PDO without checking that it exists

This commit is contained in:
Andrew Dolgov 2017-12-03 13:41:09 +03:00
parent 97a5e13370
commit 3eecebc34f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@
}
}
if (SINGLE_USER_MODE) {
if (SINGLE_USER_MODE && class_exists("PDO")) {
$pdo = DB::pdo();
$res = $pdo->query("SELECT id FROM ttrss_users WHERE id = 1");