monitoring/show: forgot to check for existance

This commit is contained in:
Thomas Gelf 2014-09-04 18:57:20 +02:00
parent 05a64ceea9
commit 7b35741985
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}