diff --git a/Core/core.php b/Core/core.php index c75afe2..096d5b6 100644 --- a/Core/core.php +++ b/Core/core.php @@ -229,7 +229,7 @@ function html_tag_ex(string $tag, array $attributes, $content = "", bool $escape $content = htmlspecialchars($content); } - return ($short && !empty($content)) ? "<$tag$attrs/>" : "<$tag$attrs>$content"; + return ($short && empty($content)) ? "<$tag$attrs/>" : "<$tag$attrs>$content"; } function getClassPath($class, string $suffix = ".class"): string { @@ -345,4 +345,4 @@ function loadEnv(?string $file = NULL, bool $putEnv = false): array|null { } return $env; -} \ No newline at end of file +}