From: Michael J. Rubinsky Date: Fri, 13 Feb 2009 19:28:30 +0000 (-0500) Subject: lower case the action string before comparing X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0f8b561da41ebaab8d699b665a2ed3f396bb34cb;p=horde.git lower case the action string before comparing --- 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;