diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 09019ac72f..3d60ffe41b 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -781,11 +781,11 @@ class timesheet_ui extends timesheet_bo else { if ($this->action($content['action'],$content['nm']['rows']['checked'],$content['use_all'], - $success,$failed,$action_msg,'index',$msg)) + $success,$failed,$action_msg,'index',$msg)) { $msg .= lang('%1 timesheets(s) %2',$success,$action_msg); } - elseif(is_null($msg)) + elseif(empty($msg)) { $msg .= lang('%1 timesheets(s) %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed); }