undefined $_type on successful table rename
This commit is contained in:
@@ -934,6 +934,7 @@ if (typeof(window.parent) != 'undefined'
|
|||||||
*
|
*
|
||||||
* @param string $message the message to display
|
* @param string $message the message to display
|
||||||
* @param string $sql_query the query to display
|
* @param string $sql_query the query to display
|
||||||
|
* @param string $type the type (level) of the message
|
||||||
* @global array the configuration array
|
* @global array the configuration array
|
||||||
* @uses $cfg
|
* @uses $cfg
|
||||||
* @access public
|
* @access public
|
||||||
|
@@ -190,6 +190,9 @@ unset($reread_info);
|
|||||||
require_once './libraries/tbl_links.inc.php';
|
require_once './libraries/tbl_links.inc.php';
|
||||||
|
|
||||||
if (isset($result)) {
|
if (isset($result)) {
|
||||||
|
// set to success by default, because result set could be empty
|
||||||
|
// (for example, a table rename)
|
||||||
|
$_type = 'success';
|
||||||
if (empty($_message)) {
|
if (empty($_message)) {
|
||||||
$_message = $result ? $strSuccess : $strError;
|
$_message = $result ? $strSuccess : $strError;
|
||||||
// $result should exist, regardless of $_message
|
// $result should exist, regardless of $_message
|
||||||
|
Reference in New Issue
Block a user