Return error on unknown action.
authorJan Schneider <jan@horde.org>
Thu, 12 Nov 2009 22:36:55 +0000 (23:36 +0100)
committerJan Schneider <jan@horde.org>
Thu, 12 Nov 2009 23:16:10 +0000 (00:16 +0100)
kronolith/ajax.php

index 646a010..13d6f38 100644 (file)
@@ -387,6 +387,10 @@ try {
         $result->taskId = $taskId;
         $result->toggled = true;
         break;
+
+    default:
+        $notification->push('Unknown action ' . $action, 'horde.error');
+        break;
     }
 } catch (Exception $e) {
     $notification->push($e->getMessage(), 'horde.error');