From 0f8b561da41ebaab8d699b665a2ed3f396bb34cb Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 13 Feb 2009 14:28:30 -0500 Subject: [PATCH] lower case the action string before comparing --- kronolith/ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kronolith/ajax.php b/kronolith/ajax.php index e309dbe6d..e40628e4a 100644 --- a/kronolith/ajax.php +++ b/kronolith/ajax.php @@ -52,8 +52,8 @@ ob_start(); $notify = true; $result = false; -switch ($action) { -case 'ListEvents': +switch (strtolower($action)) { +case 'listevents': $dates = Kronolith::listEvents(Util::getFormData('start'), Util::getFormData('end')); if (is_a($dates, 'PEAR_Error')) { $notification->push($dates, 'horde.error'); @@ -69,7 +69,7 @@ case 'ListEvents': } break; -case 'ChunkContent': +case 'chunkcontent': $chunk = basename(Util::getPost('chunk')); if (!empty($chunk)) { $result = new stdClass; -- 2.11.0