From bf306fb369de9ce6c12475fdc56c89baedc6dcf7 Mon Sep 17 00:00:00 2001 From: DSB Date: Sat, 27 Oct 2012 14:01:49 +0000 Subject: [PATCH] QA --- application/controllers/DumpController.php | 2 +- application/forms/Config/Ftp.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/application/controllers/DumpController.php b/application/controllers/DumpController.php index 96d620f..6992570 100644 --- a/application/controllers/DumpController.php +++ b/application/controllers/DumpController.php @@ -27,7 +27,7 @@ class DumpController extends Msd_Controller_Action { $dump = new Msd_Dump(); $dump->prepareDumpProcess(); - $this->view->dumpData = ''; + $this->view->dumpData = new StdClass(); $this->view->dumpData->nrOfDatabasesToBackup = count($dump->dbsToBackup); $this->view->dumpData->databasesToBackup = diff --git a/application/forms/Config/Ftp.php b/application/forms/Config/Ftp.php index dbbea96..8833a10 100644 --- a/application/forms/Config/Ftp.php +++ b/application/forms/Config/Ftp.php @@ -387,9 +387,7 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm { if (!empty($defaults['ftp'])) { $ftp = array(); - while ( - false !== (list($ftpId, $ftpData) = each($defaults['ftp'])) - ) { + while (false !== (list($ftpId, $ftpData) = each($defaults['ftp']))) { foreach ($ftpData as $ftpKey => $ftpValue) { $ftp['ftp_' . $ftpId . '_' . $ftpKey] = $ftpValue; }