mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:39:07 +01:00
Fix PHP 8.0 Fatal error: Unparenthesized a ? b : c ?: d
is not supported
This commit is contained in:
parent
ab9c089f70
commit
84845d05b5
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user