From a4805c47f6314c3ba59489b5b2122c4891e4904a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Apr 2008 07:48:40 +0000 Subject: [PATCH] Updated msgDialog -Skip empty messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10342 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_msg_dialog.inc | 2 ++ 1 file changed, 2 insertions(+) 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."); -- 2.30.2