Skip to content

Commit 0995b38

Browse files
committed
fix: fix the field named data will produce bugged output.
1 parent cf43310 commit 0995b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ protected function _prepArgs(array $args)
265265
// If there is no $args[0], skip this and treat as an associative array
266266
// This can happen if there is only a single key, for example this is passed to table->generate
267267
// array(array('foo'=>'bar'))
268-
if (isset($args[0]) && count($args) === 1 && is_array($args[0]) && ! isset($args[0]['data'])) {
268+
if (isset($args[0]) && count($args) === 1 && is_array($args[0])) {
269269
$args = $args[0];
270270
}
271271

0 commit comments

Comments
 (0)