diff --git a/src/WkFile.php b/src/WkFile.php index f1a4176..ebb5a28 100644 --- a/src/WkFile.php +++ b/src/WkFile.php @@ -168,7 +168,7 @@ public static function get_html($obj, array $variables = [], string $template = if (!$template) { $parts = explode('\\', $obj->ClassName); - if (count($parts > 1)) { + if (count($parts) > 1) { $last = $parts[count($parts) - 1]; unset($parts[count($parts) - 1]); $parts[] = $type; @@ -305,4 +305,4 @@ public function handleMissingYmlConfig($pageSize, $orientation) { echo 'Please create it "Grasenhiller\WkHtmlToX.' . $type . '.options.' . $string . '"'; die(); } -} \ No newline at end of file +}