From 2d2c2363911381ef8c0c268dac75b071511d4482 Mon Sep 17 00:00:00 2001 From: Gerald Raab Date: Fri, 4 Nov 2016 13:52:55 +0100 Subject: [PATCH] bugfix obj/arr-problem --- application/widgets/mimetype_widget.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 application/widgets/mimetype_widget.php diff --git a/application/widgets/mimetype_widget.php b/application/widgets/mimetype_widget.php old mode 100644 new mode 100755 index 069ac1219..82fd394fb --- a/application/widgets/mimetype_widget.php +++ b/application/widgets/mimetype_widget.php @@ -3,16 +3,16 @@ /* * MimeType widget */ -class mimetype_widget extends Widget +class mimetype_widget extends Widget { - public function display($data) + public function display($data) { if (is_null($data['mimetype'])) $data['mimetype'] = ''; $this->load->model('system/Vorlage_model'); $res = $this->Vorlage_model->getMimeTypes(); //var_dump($res); - foreach ($res->retval->result() as $obj) + foreach ($res->retval as $obj) { $item = array('name' => $obj->mimetype, 'value' => $obj->mimetype); if (isset($data['mimetype']) && $obj->mimetype == $data['mimetype']) @@ -23,5 +23,5 @@ class mimetype_widget extends Widget } $this->view('widgets/mimetype', $data); } - + }