diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 7dd39f9b5..b1da1de11 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -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); }