prevent a call with incorrect parameter value

This commit is contained in:
Marc Delisle
2010-09-19 09:26:49 -04:00
parent 598d3b898d
commit 316ea9f006

View File

@@ -2931,7 +2931,7 @@ function PMA_ajaxResponse($message, $success = true, $extra_data = array())
}
// If extra_data has been provided, append it to the response array
if( count($extra_data) > 0 ) {
if( ! empty($extra_data) && count($extra_data) > 0 ) {
$response = array_merge($response, $extra_data);
}