1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Make sure mysql_* functions are available, otherwise use PDO

This commit is contained in:
Tijn Kuyper
2019-01-10 17:22:49 +01:00
parent be0af523da
commit 1a40b80915

View File

@@ -112,7 +112,7 @@ class e_db_mysql
global $pref, $db_defaultPrefix;
if((PHP_MAJOR_VERSION > 6) || (defined('e_PDO') && e_PDO === true))
if((PHP_MAJOR_VERSION > 6) || !function_exists('mysql_connect') || (defined('e_PDO') && e_PDO === true))
{
$this->pdo = true;
}