diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 13:41:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 13:41:09 +0300 |
commit | 3eecebc34f548cb135b5285515729ed91184e9e4 (patch) | |
tree | f433bc91fae921eb0170b4769feb6c7f3adc709e /include/sanity_check.php | |
parent | 97a5e13370b0d192e532a3d837e81778b4f41c6d (diff) |
sanity_check: do not invoke PDO without checking that it exists
Diffstat (limited to 'include/sanity_check.php')
-rwxr-xr-x | include/sanity_check.php | 2 |
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"); |