Sfoglia il codice sorgente

Fixes incorrect date time being returned.

Alan Lam 8 anni fa
parent
commit
70de38ed0e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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";