From 0fd6c4adbf3a4244c9ccddab3d1ae51d811b53c0 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Fri, 13 Jul 2012 14:54:04 -0400 Subject: [PATCH] fixed typo --- airtime_mvc/application/controllers/ApiController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 7bea15167..007e5da3b 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -550,8 +550,8 @@ class ApiController extends Zend_Controller_Action //The key does not have any meaning as of yet but it could potentially correspond //to some unique id. $responses = array(); - foreach ($request->getRequest()->getParams() as $action => $info_json) { - $json = json_decode($info_json, $assoc=true); + foreach ($request->getRequest()->getParams() as $action => $raw_json) { + $info_json = json_decode($raw_json, $assoc=true); array_push($responses, $this->dispatchMetaDataAction($info_json, $info_json['mode'])); } // TODO : do something with $responses here instead of doing nothing