diff --git a/src/Brabijan/Images/Macros/Latte.php b/src/Brabijan/Images/Macros/Latte.php index 5b387e4..39c8a7a 100644 --- a/src/Brabijan/Images/Macros/Latte.php +++ b/src/Brabijan/Images/Macros/Latte.php @@ -136,7 +136,7 @@ public function finalize() */ public static function validateTemplateParams($template) { - if (!($template instanceof \Latte\Runtime\Template) || !($template instanceof \Nette\Application\UI\Template)) { + if (!($template instanceof \Latte\Runtime\Template) && !($template instanceof \Nette\Application\UI\Template)) { throw new \InvalidArgumentException('$template has to be instance of LR\Template or Nette\Templating\Template, instance of ' . get_class($template) . ' given.'); }