From: hickert Date: Fri, 11 Apr 2008 07:48:40 +0000 (+0000) Subject: Updated msgDialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4805c47f6314c3ba59489b5b2122c4891e4904a;p=gosa.git Updated msgDialog -Skip empty messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10342 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_msg_dialog.inc b/gosa-core/include/class_msg_dialog.inc index 5fb06268f..1ba29747e 100644 --- a/gosa-core/include/class_msg_dialog.inc +++ b/gosa-core/include/class_msg_dialog.inc @@ -37,6 +37,8 @@ class msg_dialog 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.");