From: Andrew Dolgov Date: Sun, 3 Dec 2017 10:41:09 +0000 (+0300) Subject: sanity_check: do not invoke PDO without checking that it exists X-Git-Tag: 18.8~150 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3eecebc34f548cb135b5285515729ed91184e9e4;hp=97a5e13370b0d192e532a3d837e81778b4f41c6d;p=tt-rss.git sanity_check: do not invoke PDO without checking that it exists --- diff --git a/include/sanity_check.php b/include/sanity_check.php index fc9c49a4..dddc557f 100755 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -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");