fixed from error

This commit is contained in:
Torsten Schulz
2023-12-28 17:35:32 +01:00
parent 87a4ef7d55
commit 0208b81f11

View File

@@ -107,7 +107,7 @@ class Renderer {
} }
public function render(): void { 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->formAction();
} }
$this->website = file_get_contents('templates/page.html'); $this->website = file_get_contents('templates/page.html');