From e5a74e7285abc845b170b47ffc26ece137e9e152 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Wed, 11 Jun 2014 13:35:10 -0400 Subject: [PATCH] Fix error due to bad exception throwing --- .../application/modules/rest/controllers/MediaController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/modules/rest/controllers/MediaController.php b/airtime_mvc/application/modules/rest/controllers/MediaController.php index f88c397d1..1604d1262 100644 --- a/airtime_mvc/application/modules/rest/controllers/MediaController.php +++ b/airtime_mvc/application/modules/rest/controllers/MediaController.php @@ -409,7 +409,7 @@ class Rest_MediaController extends Zend_Rest_Controller } if (!$fileForm->isValidPartial($whiteList)) { - throw Exception("Data validation failed"); + throw new Exception("Data validation failed"); } } catch (Exception $e) { $errors = $fileForm->getErrors();