Explorar o código

Quick and dirty fix for Google iCal Not working (#1233)

CauseFX %!s(int64=6) %!d(string=hai) anos
pai
achega
ec93695ed6
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      api/functions/homepage-connect-functions.php

+ 6 - 1
api/functions/homepage-connect-functions.php

@@ -1436,7 +1436,12 @@ function getCalenderRepeatUntil($value)
 {
 	$first = explode('UNTIL=', $value);
 	if (count($first) > 1) {
-		return $first[1];
+		if(strpos($first[1], ';') !== false){
+			$check = explode(';', $first[1]);
+			return $check[0];
+		}else{
+			return $first[1];
+		}
 	} else {
 		return false;
 	}