Selaa lähdekoodia

Fixes incorrect date time being returned.

Alan Lam 8 vuotta sitten
vanhempi
commit
70de38ed0e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      engine/http.php

+ 1 - 0
engine/http.php

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