summaryrefslogtreecommitdiff
path: root/plugins/SQLProfile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SQLProfile')
-rw-r--r--plugins/SQLProfile/SQLProfilePlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SQLProfile/SQLProfilePlugin.php b/plugins/SQLProfile/SQLProfilePlugin.php
index 035c56c28..1e49d9005 100644
--- a/plugins/SQLProfile/SQLProfilePlugin.php
+++ b/plugins/SQLProfile/SQLProfilePlugin.php
@@ -45,7 +45,7 @@ class SQLProfilePlugin extends Plugin
function onStartDBQuery($obj, $query, &$result)
{
- if (!$this->recursionGuard) {
+ if (!$this->recursionGuard && preg_match('/\bselect\b/i', $query)) {
$this->recursionGuard = true;
$xobj = clone($obj);
$explain = $xobj->query('EXPLAIN ' . $query);