From c1b1b09d9dc9e8e79731adaad64a5f1ef190b496 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 12 Nov 2009 23:36:55 +0100 Subject: [PATCH] Return error on unknown action. --- kronolith/ajax.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kronolith/ajax.php b/kronolith/ajax.php index 646a0102e..13d6f3878 100644 --- a/kronolith/ajax.php +++ b/kronolith/ajax.php @@ -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'); -- 2.11.0