From 316ea9f006d1409103e81f3f7f23c137ddf49f85 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 19 Sep 2010 09:26:49 -0400 Subject: [PATCH] prevent a call with incorrect parameter value --- libraries/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }