From 3eecebc34f548cb135b5285515729ed91184e9e4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 13:41:09 +0300 Subject: [PATCH] sanity_check: do not invoke PDO without checking that it exists --- include/sanity_check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");