summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-03 13:41:09 +0300
committerAndrew Dolgov <[email protected]>2017-12-03 13:41:09 +0300
commit3eecebc34f548cb135b5285515729ed91184e9e4 (patch)
treef433bc91fae921eb0170b4769feb6c7f3adc709e /include
parent97a5e13370b0d192e532a3d837e81778b4f41c6d (diff)
sanity_check: do not invoke PDO without checking that it exists
Diffstat (limited to 'include')
-rwxr-xr-xinclude/sanity_check.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index fc9c49a42..dddc557f2 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");