diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-06-14 12:28:47 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-06-14 12:28:47 +0200 |
commit | 0260c0ccaf8de833e0eefdbca2eb51e4b2537ce6 (patch) | |
tree | 41b4134ec032490c1e750a514b15c8e376c38f6f /phpBB/includes/functions.php | |
parent | 7642fbbd63e70c55a033503a428a6b206a29efdf (diff) | |
download | forums-0260c0ccaf8de833e0eefdbca2eb51e4b2537ce6.tar forums-0260c0ccaf8de833e0eefdbca2eb51e4b2537ce6.tar.gz forums-0260c0ccaf8de833e0eefdbca2eb51e4b2537ce6.tar.bz2 forums-0260c0ccaf8de833e0eefdbca2eb51e4b2537ce6.tar.xz forums-0260c0ccaf8de833e0eefdbca2eb51e4b2537ce6.zip |
[ticket/12707] Do not try to load 3.1 DBMS driver name as 3.0 driver.
PHPBB3-12707
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 9d94ef2be4..3d0a4761f3 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5311,7 +5311,7 @@ function phpbb_convert_30_dbms_to_31($dbms) // true for mysqli class. // However, per the docblock any valid 3.1 driver name should be // recognized by this function, and have priority over 3.0 dbms. - if (class_exists('phpbb\db\driver\\' . $dbms)) + if (strpos($dbms, 'phpbb\db\driver') === false && class_exists('phpbb\db\driver\\' . $dbms)) { return 'phpbb\db\driver\\' . $dbms; } |