Code

Updated msgDialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 07:48:40 +0000 (07:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 07:48:40 +0000 (07:48 +0000)
-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

index 5fb06268f92e79e1656e947e41c96c3dfc34ed9f..1ba29747e639cb4c9d68043368e6c10a880e47a3 100644 (file)
@@ -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.");