From 49360696eff7fdb31156ebb8aa3356fa086d8609 Mon Sep 17 00:00:00 2001 From: Tyron Madlener Date: Sat, 9 Jul 2011 22:25:33 +0300 Subject: [PATCH] also recognize lower case insert --- server_status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_status.php b/server_status.php index 7492fd961d..883177447e 100644 --- a/server_status.php +++ b/server_status.php @@ -208,9 +208,9 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) { while ($row = PMA_DBI_fetch_assoc($result)) { preg_match('/^(\w+)\s/',$row['argument'],$match); - $type = $match[1]; + $type = strtolower($match[1]); $return['sum'][$type]++; - if($type=='INSERT') { + if($type=='insert') { if(isset($_REQUEST['groupInserts']) && $_REQUEST['groupInserts'] && preg_match('/^INSERT INTO (`|\'|"|)([^\s\\1]+)\\1/i',$row['argument'],$matches)) { $insertTables[$matches[2]]++; if ($insertTables[$matches[2]] > 1) {