diff --git a/api/src/Sharing.php b/api/src/Sharing.php index e9c35b9ca0..744ab049c7 100644 --- a/api/src/Sharing.php +++ b/api/src/Sharing.php @@ -392,8 +392,8 @@ class Sharing echo $message; $class = strpos($status, '404') === 0 ? 'EGroupware\Api\Exception\NotFound' : - strpos($status, '401') === 0 ? 'EGroupware\Api\Exception\NoPermission' : - 'EGroupware\Api\Exception'; + (strpos($status, '401') === 0 ? 'EGroupware\Api\Exception\NoPermission' : + 'EGroupware\Api\Exception'); throw new $class($message, $status); } diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 5983ccb54d..2d0de67d3d 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -1368,7 +1368,7 @@ class infolog_ui } $app = Api\Json\Push::onlyFallback() || $all_selected ? 'infolog' : 'msg-only-push-refresh'; Api\Json\Response::get()->call('egw.refresh', $msg, $app, $selected[0], $all_selected || count($selected) > 1 ? null : - $action === 'delete' ? 'delete' : 'edit', $app, null, null, $failed ? 'error' : 'success'); + ($action === 'delete' ? 'delete' : 'edit'), $app, null, null, $failed ? 'error' : 'success'); } /** diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 8388c242b9..5e948c75b9 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -1142,7 +1142,7 @@ class timesheet_ui extends timesheet_bo } $app = Api\Json\Push::onlyFallback() || $all_selected ? 'timesheet' : 'msg-only-push-refresh'; Api\Json\Response::get()->call('egw.refresh', $msg, $app, $selected[0], $all_selected || count($selected) > 1 ? null : - $action === 'delete' ? 'delete' : 'update', $app, null, null, $failed ? 'error' : 'success'); + ($action === 'delete' ? 'delete' : 'update'), $app, null, null, $failed ? 'error' : 'success'); } /**