Merge remote-tracking branch 'origin/QA_4_5' into QA_4_5

This commit is contained in:
Weblate 2015-09-16 14:09:36 +02:00
commit 7584568cd9
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog
- issue Invalid argument supplied for foreach()
- issue array_key_exists() expects parameter 2 to be array
- issue #11480 Notice Undefined index: drop_database
- issue #11486 Server variable edition in ANSI_QUOTES sql_mode: losing current value
4.5.0.0 (not yet released)
+ rfe Pagination for GIS visualization

View File

@ -25,9 +25,11 @@ function PMA_getAjaxReturnForGetVal($variable_doc_links)
// Send with correct charset
header('Content-Type: text/html; charset=UTF-8');
// Do not use double quotes inside the query to avoid a problem
// when server is running in ANSI_QUOTES sql_mode
$varValue = $GLOBALS['dbi']->fetchSingleRow(
'SHOW GLOBAL VARIABLES WHERE Variable_name="'
. PMA_Util::sqlAddSlashes($_REQUEST['varName']) . '";',
'SHOW GLOBAL VARIABLES WHERE Variable_name=\''
. PMA_Util::sqlAddSlashes($_REQUEST['varName']) . '\';',
'NUM'
);
if (isset($variable_doc_links[$_REQUEST['varName']][3])