Просмотр исходного кода

Fixes incorrect date time being returned.

Alan Lam 8 лет назад
Родитель
Сommit
70de38ed0e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      engine/http.php

+ 1 - 0
engine/http.php

@@ -62,6 +62,7 @@ class HTTP {
 
 
 	public static function getDateTimeFromFields($prefix = "") {
 	public static function getDateTimeFromFields($prefix = "") {
 		$date = http::getDateFromFields($prefix);
 		$date = http::getDateFromFields($prefix);
+		if($date === false) return false;
 
 
 		if(empty($prefix)) {
 		if(empty($prefix)) {
 			$hour_field = "hour";
 			$hour_field = "hour";