mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Make sure mysql_* functions are available, otherwise use PDO
This commit is contained in:
@@ -112,7 +112,7 @@ class e_db_mysql
|
|||||||
global $pref, $db_defaultPrefix;
|
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;
|
$this->pdo = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user