Use hasRecurEnd().
authorJan Schneider <jan@horde.org>
Thu, 18 Nov 2010 15:53:29 +0000 (16:53 +0100)
committerJan Schneider <jan@horde.org>
Thu, 18 Nov 2010 15:53:29 +0000 (16:53 +0100)
framework/Date/lib/Horde/Date/Recurrence.php

index 318ce4b..08dfc2d 100644 (file)
@@ -1550,7 +1550,7 @@ class Horde_Date_Recurrence
         $json = new stdClass;
         $json->t = $this->recurType;
         $json->i = $this->recurInterval;
-        if ($this->recurEnd) {
+        if ($this->hasRecurEnd()) {
             $json->e = $this->recurEnd->toJson();
         }
         if ($this->recurCount) {