undefined $_type on successful table rename

This commit is contained in:
Marc Delisle
2008-05-04 12:23:48 +00:00
parent 4085b80bdc
commit 51ea0c93c8
2 changed files with 4 additions and 0 deletions

View File

@@ -190,6 +190,9 @@ unset($reread_info);
require_once './libraries/tbl_links.inc.php';
if (isset($result)) {
// set to success by default, because result set could be empty
// (for example, a table rename)
$_type = 'success';
if (empty($_message)) {
$_message = $result ? $strSuccess : $strError;
// $result should exist, regardless of $_message