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
+4 -4
View File
@@ -32,12 +32,12 @@ class Template
} }
} }
if ($throwExceptions) { if (is_null($view)) {
if (is_null($view)) { if ($throwExceptions) {
throw new InvalidArgumentException('Cannot find template for ' . $namespace . $template); throw new InvalidArgumentException('Cannot find template for ' . $namespace . $template);
} else {
return false;
} }
} else {
return false;
} }
return $view; return $view;