From 528a29afe36364697b7c2ab328e674c7d9c4de5e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 2 Nov 2007 17:50:14 +0000 Subject: [PATCH] fix Notice when renaming a table --- tbl_operations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tbl_operations.php b/tbl_operations.php index 4fc7929bde..3b880c4fda 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -153,8 +153,9 @@ require_once './libraries/tbl_links.inc.php'; if (isset($result)) { if (empty($_message)) { $_message = $result ? $strSuccess : $strError; - $_type = $result ? 'success' : 'error'; } + // $result should exist, regardless of $_message + $_type = $result ? 'success' : 'error'; PMA_showMessage($_message, $sql_query, $_type); }