diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 4eed8bf87..e7d08b753 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -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 diff --git a/tbl_operations.php b/tbl_operations.php index 5c9f8966a..94cf50169 100644 --- a/tbl_operations.php +++ b/tbl_operations.php @@ -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