mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
fix Scrutinizer "bugs"
This commit is contained in:
parent
82c4eecfa3
commit
4db7e2fb94
@ -1133,9 +1133,9 @@ class timesheet_ui extends timesheet_bo
|
||||
$cat_name = Api\Categories::id2name($settings);
|
||||
$action_msg = lang('changed category to %1', $cat_name);
|
||||
foreach((array)$checked as $n => $id) {
|
||||
$entry = $this->read($id);
|
||||
$entry['cat_id'] = $settings;
|
||||
if($this->save($entry) == 0)
|
||||
if (($entry = $this->read($id)) &&
|
||||
($entry['cat_id'] = $settings) &&
|
||||
$this->save($entry) == 0)
|
||||
{
|
||||
$success++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user