Skip to content
Snippets Groups Projects
Commit 180fd60f authored by David Siegfried's avatar David Siegfried Committed by Murtaza Sultani
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 933136b5
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ class Resources_ResourceController extends AuthenticatedController
protected function addEditDeleteHandler($mode = 'add')
{
$this->resource = count($this->resources) > 0 ? $this->resources[0] :null;
$this->resource = $this->resources[0] ?? null;
$user = User::findCurrent();
$this->show_form = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment