Fixed Bug 3884 Ajax navigation not working with IS enabled (only on first click)

This commit is contained in:
Spun Nakandala 2013-04-20 00:39:34 +05:30
parent 8fdd99aceb
commit a4cd76bff4

View File

@ -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);