Merge pull request #177 from hisamith/limit_error_3833
Fixed #3833 Undefined variable: sql_limit_to_append.
This commit is contained in:
commit
dde56a3966
@ -1145,7 +1145,7 @@ class PMA_Util
|
||||
*/
|
||||
|
||||
if (isset($analyzed_display_query[0]['queryflags']['select_from'])
|
||||
&& isset($GLOBALS['sql_limit_to_append'])
|
||||
&& ! empty($GLOBALS['sql_limit_to_append'])
|
||||
) {
|
||||
$query_base = $analyzed_display_query[0]['section_before_limit']
|
||||
. "\n" . $GLOBALS['sql_limit_to_append']
|
||||
|
||||
1
sql.php
1
sql.php
@ -560,6 +560,7 @@ if ($GLOBALS['cfg']['RememberSorting']
|
||||
PMA_handleSortOrder($db, $table, $analyzed_sql, $full_sql_query);
|
||||
}
|
||||
|
||||
$sql_limit_to_append = '';
|
||||
// Do append a "LIMIT" clause?
|
||||
if (($_SESSION['tmp_user_values']['max_rows'] != 'all')
|
||||
&& ! ($is_count || $is_export || $is_func || $is_analyse)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user