From: Thomas Tanghus Date: Thu, 14 Jun 2012 20:40:18 +0000 (+0200) Subject: If Hr. Lerdorf had made up his mind on parameter order, life would have been a lot... X-Git-Tag: v4.5.0beta1~74^2~420^2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=27ab6daeb00770039911c2e135fb24804ed2d31b;p=nextcloud-server.git If Hr. Lerdorf had made up his mind on parameter order, life would have been a lot easier... --- diff --git a/apps/contacts/lib/hooks.php b/apps/contacts/lib/hooks.php index e3d5df3d51f..e74b465a47b 100644 --- a/apps/contacts/lib/hooks.php +++ b/apps/contacts/lib/hooks.php @@ -56,7 +56,7 @@ class OC_Contacts_Hooks{ static public function getBirthdayEvents($parameters) { $name = $parameters['calendar_id']; - if (strpos('birthday_', $name) != 0) { + if (strpos($name, 'birthday_') != 0) { return; } $info = explode('_', $name);