From a4cd76bff43cbf362e661c1f0c6cfd2b8f6b8a8e Mon Sep 17 00:00:00 2001 From: Spun Nakandala Date: Sat, 20 Apr 2013 00:39:34 +0530 Subject: [PATCH] Fixed Bug 3884 Ajax navigation not working with IS enabled (only on first click) --- libraries/navigation/Nodes/Node_Database.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/navigation/Nodes/Node_Database.class.php b/libraries/navigation/Nodes/Node_Database.class.php index 1b77161377..44304c13bc 100644 --- a/libraries/navigation/Nodes/Node_Database.class.php +++ b/libraries/navigation/Nodes/Node_Database.class.php @@ -234,7 +234,7 @@ class Node_Database extends Node $query .= "%'"; } $query .= "ORDER BY `TABLE_NAME` ASC "; - $query .= "LIMIT $pos, $maxItems"; + $query .= "LIMIT " . intval($pos) . ", $maxItems"; $retval = PMA_DBI_fetch_result($query); } else { $query = " SHOW FULL TABLES FROM "; @@ -277,7 +277,7 @@ class Node_Database extends Node $query .= "%'"; } $query .= "ORDER BY `TABLE_NAME` ASC "; - $query .= "LIMIT $pos, $maxItems"; + $query .= "LIMIT " . intval($pos) . ", $maxItems"; $retval = PMA_DBI_fetch_result($query); } else { $query = "SHOW FULL TABLES FROM "; @@ -320,7 +320,7 @@ class Node_Database extends Node $query .= "%'"; } $query .= "ORDER BY `ROUTINE_NAME` ASC "; - $query .= "LIMIT $pos, $maxItems"; + $query .= "LIMIT " . intval($pos) . ", $maxItems"; $retval = PMA_DBI_fetch_result($query); } else { $db = PMA_Util::sqlAddSlashes($db); @@ -360,7 +360,7 @@ class Node_Database extends Node $query .= "%'"; } $query .= "ORDER BY `ROUTINE_NAME` ASC "; - $query .= "LIMIT $pos, $maxItems"; + $query .= "LIMIT " . intval($pos) . ", $maxItems"; $retval = PMA_DBI_fetch_result($query); } else { $db = PMA_Util::sqlAddSlashes($db); @@ -399,7 +399,7 @@ class Node_Database extends Node $query .= "%'"; } $query .= "ORDER BY `EVENT_NAME` ASC "; - $query .= "LIMIT $pos, $maxItems"; + $query .= "LIMIT " . intval($pos) . ", $maxItems"; $retval = PMA_DBI_fetch_result($query); } else { $db = PMA_Util::backquote($db);