From: Jan Schneider Date: Tue, 15 Dec 2009 16:49:11 +0000 (+0100) Subject: Avoid notices when editing old calendars. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5e4090d62bb48789251f097ef14199a86ce3f8c9;p=horde.git Avoid notices when editing old calendars. --- diff --git a/kronolith/calendars/remote_edit.php b/kronolith/calendars/remote_edit.php index 90f29bc45..c2790a668 100644 --- a/kronolith/calendars/remote_edit.php +++ b/kronolith/calendars/remote_edit.php @@ -60,8 +60,12 @@ if ($key) { $vars->set('name', $calendar['name']); $vars->set('url', $calendar['url']); -$vars->set('decription', $calendar['desc']); -$vars->set('color', $calendar['color']); +if (isset($calendar['desc'])) { + $vars->set('decription', $calendar['desc']); +} +if (isset($calendar['color'])) { + $vars->set('color', $calendar['color']); +} $vars->set('username', $username); $vars->set('password', $password); $title = $form->getTitle();