]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
sanity_check: do not invoke PDO without checking that it exists
[tt-rss.git] / 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");