]> git.wh0rd.org - tt-rss.git/commitdiff
sanity_check: do not invoke PDO without checking that it exists
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 3 Dec 2017 10:41:09 +0000 (13:41 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 3 Dec 2017 10:41:09 +0000 (13:41 +0300)
include/sanity_check.php

index fc9c49a429952b0dc0ab546c937e40576971500c..dddc557f2500986ab5f206556534bad615fd34fd 100755 (executable)
@@ -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");