From d060180140923ac054b252f0cbd821063a53f5b7 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 23 Oct 2014 23:27:15 +0200 Subject: Use function outside of loop Otherwise the function is executed n times which is a lot of overhead --- lib/private/vobject.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/vobject.php') diff --git a/lib/private/vobject.php b/lib/private/vobject.php index 94e3470ff08..9d121c17d79 100644 --- a/lib/private/vobject.php +++ b/lib/private/vobject.php @@ -72,7 +72,8 @@ class OC_VObject{ */ public static function unescapeSemicolons($value) { $array = explode(';', $value); - for($i=0;$i