From 5e4090d62bb48789251f097ef14199a86ce3f8c9 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 15 Dec 2009 17:49:11 +0100 Subject: [PATCH] Avoid notices when editing old calendars. --- kronolith/calendars/remote_edit.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); -- 2.11.0