mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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);
|
$cat_name = Api\Categories::id2name($settings);
|
||||||
$action_msg = lang('changed category to %1', $cat_name);
|
$action_msg = lang('changed category to %1', $cat_name);
|
||||||
foreach((array)$checked as $n => $id) {
|
foreach((array)$checked as $n => $id) {
|
||||||
$entry = $this->read($id);
|
if (($entry = $this->read($id)) &&
|
||||||
$entry['cat_id'] = $settings;
|
($entry['cat_id'] = $settings) &&
|
||||||
if($this->save($entry) == 0)
|
$this->save($entry) == 0)
|
||||||
{
|
{
|
||||||
$success++;
|
$success++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user