checking for PDO there is rather useless

master
Andrew Dolgov 3 years ago
parent b5a559a1a7
commit f423874e05

@ -485,7 +485,7 @@ class Config {
} }
// ttrss_users won't be there on initial startup (before migrations are done) // ttrss_users won't be there on initial startup (before migrations are done)
if (!Config::is_migration_needed() && self::get(Config::SINGLE_USER_MODE) && class_exists("PDO")) { if (!Config::is_migration_needed() && self::get(Config::SINGLE_USER_MODE)) {
if (UserHelper::get_login_by_id(1) != "admin") { if (UserHelper::get_login_by_id(1) != "admin") {
array_push($errors, "SINGLE_USER_MODE is enabled but default admin account (ID: 1) is not found."); array_push($errors, "SINGLE_USER_MODE is enabled but default admin account (ID: 1) is not found.");
} }

Loading…
Cancel
Save