From 27ab6daeb00770039911c2e135fb24804ed2d31b Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 14 Jun 2012 22:40:18 +0200 Subject: [PATCH] If Hr. Lerdorf had made up his mind on parameter order, life would have been a lot easier... --- apps/contacts/lib/hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5