Skip to content

Commit 7694710

Browse files
committed
Fixin csv and html outputs
1 parent 7852a16 commit 7694710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/libraries/Format.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function to_xml($data = null, $structure = null, $basenode = 'xml')
151151
// Format HTML for output
152152
public function to_html()
153153
{
154-
$data = $this->_data;
154+
$data = (array)$this->_data;
155155

156156
// Multi-dimensional array
157157
if (isset($data[0]) && is_array($data[0]))
@@ -182,7 +182,7 @@ public function to_html()
182182
// Format CSV for output
183183
public function to_csv()
184184
{
185-
$data = $this->_data;
185+
$data = (array)$this->_data;
186186

187187
// Multi-dimensional array
188188
if (isset($data[0]) && is_array($data[0]))

0 commit comments

Comments
 (0)