diff --git a/include/renderer.php b/include/renderer.php index 459e1c9..abb9fd9 100644 --- a/include/renderer.php +++ b/include/renderer.php @@ -107,7 +107,7 @@ class Renderer { } public function render(): void { - if (trim(filter_input(INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS)) !== '') { + if (filter_input(INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS) !== NULL && trim(filter_input(INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS)) !== '') { $this->formAction(); } $this->website = file_get_contents('templates/page.html');