Fix saving copy of an event to a different calendar.
authorJan Schneider <jan@horde.org>
Tue, 15 Jun 2010 19:30:29 +0000 (21:30 +0200)
committerJan Schneider <jan@horde.org>
Tue, 15 Jun 2010 19:30:29 +0000 (21:30 +0200)
kronolith/lib/Ajax/Application.php

index 910eadf..9951543 100644 (file)
@@ -110,7 +110,8 @@ class Kronolith_Ajax_Application extends Horde_Ajax_Application_Base
             }
         }
 
-        if ($this->_vars->cal &&
+        if ($this->_vars->event &&
+            $this->_vars->cal &&
             $this->_vars->cal != $this->_vars->targetcalendar) {
             if (strpos($kronolith_driver->calendar, ':')) {
                 list($target, $user) = explode(':', $kronolith_driver->calendar, 2);