From 29bf47e49b7f4eabbedf0bb14ff7edbaea5a44de Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sat, 4 Oct 2014 18:22:51 +0530 Subject: [PATCH] Define $message in all paths Signed-off-by: Madhura Jayaratne --- db_operations.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/db_operations.php b/db_operations.php index 9d48bb3009..5a1979ebe6 100644 --- a/db_operations.php +++ b/db_operations.php @@ -142,6 +142,8 @@ if ($pmaString->strlen($GLOBALS['db']) ); $message->addParam($GLOBALS['db']); $message->addParam($_REQUEST['newname']); + } else { + $message = PMA_Message::error(); } $reload = true; @@ -158,10 +160,6 @@ if ($pmaString->strlen($GLOBALS['db']) $GLOBALS['PMA_Config']->setCookie('pma_switch_to_new', ''); } } - - if ($_error && ! isset($message)) { - $message = PMA_Message::error(); - } } /**