Fixed check in hlp_header_helper->printRefreshMeta function

This commit is contained in:
Paolo
2022-03-08 14:52:44 +01:00
parent 78a5f65025
commit 2adfa8a09c
+9 -6
View File
@@ -44,13 +44,16 @@ function printPageTitle($title)
*/ */
function printRefreshMeta($refresh) function printRefreshMeta($refresh)
{ {
if (is_numeric($refresh) && $refresh > 0) if ($refresh != null)
{ {
echo '<meta http-equiv="refresh" content="'.$refresh.'">'; if (is_numeric($refresh) && $refresh > 0)
} {
else echo '<meta http-equiv="refresh" content="'.$refresh.'">';
{ }
show_error('The provided refresh parameter has to be a number greater then 0'); else
{
show_error('The provided refresh parameter has to be a number greater then 0');
}
} }
} }