lower case the action string before comparing
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 13 Feb 2009 19:28:30 +0000 (14:28 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 13 Feb 2009 19:28:30 +0000 (14:28 -0500)
kronolith/ajax.php

index e309dbe..e40628e 100644 (file)
@@ -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;