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; }