diff --git a/src/Tpl.php b/src/Tpl.php index a471fd9..e832b7d 100644 --- a/src/Tpl.php +++ b/src/Tpl.php @@ -671,7 +671,7 @@ class Tpl { ) http_response_code($error_code ? $error_code : 400); - if (($data['success'] ?? false) && !$keep_messages_on_success) { + if (!$keep_messages_on_success) { $data['messages'] = self :: get_messages(); if (!$data['messages']) unset($data['messages']); self :: purge_messages();