monitoring/show: forgot to check for existance
This commit is contained in:
parent
05a64ceea9
commit
7b35741985
|
@ -48,7 +48,7 @@ class Monitoring_ShowController extends Controller
|
|||
}
|
||||
if (Hook::has('grapher')) {
|
||||
$this->grapher = Hook::first('grapher');
|
||||
if (! $this->grapher->hasPreviews()) {
|
||||
if ($this->grapher && ! $this->grapher->hasPreviews()) {
|
||||
$this->grapher = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue