Fix logic.
authorJan Schneider <jan@horde.org>
Thu, 14 Oct 2010 14:12:41 +0000 (16:12 +0200)
committerJan Schneider <jan@horde.org>
Thu, 14 Oct 2010 14:12:41 +0000 (16:12 +0200)
framework/Date/lib/Horde/Date/Recurrence.php

index d5bca49..5daa0f4 100644 (file)
@@ -945,7 +945,7 @@ class Horde_Date_Recurrence
                $remainder = substr($remainder, 1);
         }
         if (!empty($remainder)) {
-            if (strpos($remainder, '#') !== false) {
+            if (strpos($remainder, '#') === 0) {
                 $this->setRecurCount(substr($remainder, 1));
             } else {
                 list($year, $month, $mday) = sscanf($remainder, '%04d%02d%02d');