Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authorfwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-03-23 00:41:07 (GMT)
committer fwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-03-23 00:41:07 (GMT)
commit701d7abf5445030fc1e69172857c3a347fbe884d (patch)
treebce9def2fd19757fd245a48c1e4ad93a5b7e356d /site/app/app_controller.php
parentcf91ca6d4f004f7a9f4ccada6ea8d5da04377fe5 (diff)
making sure publish() does not touch empty arrays
git-svn-id: http://svn.mozilla.org/addons/trunk@2842 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 579c3bc..44f187d 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -246,6 +246,7 @@ class AppController extends Controller
*/
function _sanitizeArray(&$data, $cleankeys = true) {
if (is_array($data)) {
+ if (empty($data)) return; // prevents removal of empty arrays
// recurse through the array to get all values
foreach ($data as $key => $value) {
$this->_sanitizeArray($data[$key]);