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

@@ -934,6 +934,7 @@ if (typeof(window.parent) != 'undefined'
*
* @param string $message the message to display
* @param string $sql_query the query to display
* @param string $type the type (level) of the message
* @global array the configuration array
* @uses $cfg
* @access public

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