index d6bc4f7a6aa7cc3f35bdccb11d2873826120f8a9..1ba29747e639cb4c9d68043368e6c10a880e47a3 100644 (file)
public function __construct($s_title,$s_message,$i_type)
{
global $config;
+
+ if(empty($s_message)) return;
if(!in_array($i_type,array(INFO_DIALOG,WARNING_DIALOG,ERROR_DIALOG,CONFIRM_DIALOG,FATAL_ERROR_DIALOG))){
trigger_error("Invalid msg_dialog type.");
public static function displayChecks($messages)
{
/* Assemble the message array to a plain string */
- foreach ($message as $error){
+ foreach ($messages as $error){
msg_dialog::display(_("Error"), $error, ERROR_DIALOG);
}
}