summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r--includes/sys_page.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php
index 33ec18b9..355a915f 100644
--- a/includes/sys_page.php
+++ b/includes/sys_page.php
@@ -42,7 +42,7 @@ function check_request_datetime($date_name, $time_name, $allowed_days, $default_
function parse_date($pattern, $value)
{
$datetime = DateTime::createFromFormat($pattern, trim($value));
- if ($datetime == null) {
+ if (is_null($datetime)) {
return null;
}
return $datetime->getTimestamp();