From: Jan Schneider Date: Thu, 14 Oct 2010 14:12:41 +0000 (+0200) Subject: Fix logic. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a18c426451866ac6c1c0ea251d0a0fd662099c23;p=horde.git Fix logic. --- diff --git a/framework/Date/lib/Horde/Date/Recurrence.php b/framework/Date/lib/Horde/Date/Recurrence.php index d5bca494d..5daa0f4d6 100644 --- a/framework/Date/lib/Horde/Date/Recurrence.php +++ b/framework/Date/lib/Horde/Date/Recurrence.php @@ -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');