FIX: fix determination of invalid template

This commit is contained in:
Michal Kváček
2016-09-20 15:23:07 +02:00
parent 39279a1633
commit 5662dc7cf7
+2 -2
View File
@@ -32,13 +32,13 @@ class Template
}
}
if ($throwExceptions) {
if (is_null($view)) {
if ($throwExceptions) {
throw new InvalidArgumentException('Cannot find template for ' . $namespace . $template);
}
} else {
return false;
}
}
return $view;
}