$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);
}
$x->whereAdd("(on_id = $oid OR
on_id IN ( SELECT distinct(id) FROM Documents WHERE original = $o )
)");
- continue;
+ continue 2;
}
$x->on_id = $val;
// the aobve rule for !strlen non-joined cols should apply to joined ones.
if (!strlen($val)) {
- continue;
+ continue 2;
}
}
- continue;
+ continue 2;
}
}
if (!empty($q_filtered)) {