'cols' => array(),
'leave_open' => true
);
-
+
+
$se = false;
if (is_object($data)) {
$rooar = method_exists($data, 'toRooArray');
while($data->fetch()) {
$x = $rooar ? $data->toRooArray($q) : $data->toArray();
-
-
+
if ($cols == '*') { /// did we get cols sent to us?
$cols = array_keys($x);
}