]> source.dussan.org Git - nextcloud-server.git/commitdiff
If Hr. Lerdorf had made up his mind on parameter order, life would have been a lot...
authorThomas Tanghus <thomas@tanghus.net>
Thu, 14 Jun 2012 20:40:18 +0000 (22:40 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Thu, 14 Jun 2012 21:05:31 +0000 (23:05 +0200)
apps/contacts/lib/hooks.php

index e3d5df3d51fd227c8ce65a3256367f651df0bffb..e74b465a47bfba0213a7928ff987b6db96ba7ec7 100644 (file)
@@ -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);