summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoshe weitzman2009-03-16 19:44:34 (GMT)
committermoshe weitzman2009-03-16 19:44:34 (GMT)
commit398682eb982c1347d82b0bb126ecf87532a90ac0 (patch)
tree7fc05aee2ce16f56f111985e60e7e795ff412bd0
parent71159dc895f395b226ded120a76a54e0deeef670 (diff)
#311432 by jaydub. SQL shown in Display Query Log cutoff in PostgreSQL6.x-1.15
-rw-r--r--devel.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel.module b/devel.module
index c37f2c1..d9dfe04 100644
--- a/devel.module
+++ b/devel.module
@@ -1487,7 +1487,7 @@ function devel_query_table($queries, $counts) {
$cell[$i][] = $count;
}
$cell[$i][] = l($function, "http://$api/api/$version/function/$function");
- $pos = strpos($query[0], '*/') + 3;
+ $pos = strpos($query[0], '*/') !== FALSE ? strpos($query[0], '*/') + 3 : 0;
$cell[$i][] = check_plain(substr($query[0], $pos));
$i++;
unset($diff, $count);