aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-10-13 12:29:34 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-10-13 12:29:34 +0200
commit8c2d0c8c3639bbfc2799d372cc7aafcb62fc4b8a (patch)
tree14dfe3014300268e2f775f86075fd89d5552a004 /phpBB/includes/functions_admin.php
parent6f48b3c044a5339bc019f355db490e1a53b51fdc (diff)
parente8b4304c1bbe35784b4cac5dd4059d6a4ac2dcac (diff)
downloadforums-8c2d0c8c3639bbfc2799d372cc7aafcb62fc4b8a.tar
forums-8c2d0c8c3639bbfc2799d372cc7aafcb62fc4b8a.tar.gz
forums-8c2d0c8c3639bbfc2799d372cc7aafcb62fc4b8a.tar.bz2
forums-8c2d0c8c3639bbfc2799d372cc7aafcb62fc4b8a.tar.xz
forums-8c2d0c8c3639bbfc2799d372cc7aafcb62fc4b8a.zip
Merge pull request #5708 from marc1706/ticket/16051
[ticket/16051] Remove mysql driver as it's no longer supported in PHP >= 7.0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index ce5f0812aa..4629706048 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1384,7 +1384,6 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
$db->sql_transaction('begin');
switch ($db->get_sql_layer())
{
- case 'mysql4':
case 'mysqli':
$sql = 'DELETE FROM ' . TOPICS_TABLE . '
USING ' . TOPICS_TABLE . ' t1, ' . TOPICS_TABLE . " t2
@@ -2683,8 +2682,7 @@ function phpbb_update_foes($db, $auth, $group_id = false, $user_id = false)
switch ($db->get_sql_layer())
{
case 'mysqli':
- case 'mysql4':
- $sql = 'DELETE ' . (($db->get_sql_layer() === 'mysqli' || version_compare($db->sql_server_info(true), '4.1', '>=')) ? 'z.*' : ZEBRA_TABLE) . '
+ $sql = 'DELETE z.*
FROM ' . ZEBRA_TABLE . ' z, ' . USER_GROUP_TABLE . ' ug
WHERE z.zebra_id = ug.user_id
AND z.foe = 1
@@ -2840,8 +2838,6 @@ function get_database_size()
// This code is heavily influenced by a similar routine in phpMyAdmin 2.2.0
switch ($db->get_sql_layer())
{
- case 'mysql':
- case 'mysql4':
case 'mysqli':
$sql = 'SELECT VERSION() AS mysql_version';
$result = $db->sql_query($sql);