Skip to content
Snippets Groups Projects
Commit 61010910 authored by Tibo's avatar Tibo
Browse files

Fix

parent 75426d93
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ class Server extends Model
}
public function lastRecordContaining($field) {
if ($this->lastRecord()->$field != null) {
if (isset($this->lastRecord()->$field)) {
return $this->lastRecord();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment