function _uexport_multirow($query) {
$result = array();
$r = q($query);
-// if(count($r)) {
+// if(dbm::is_result($r)) {
if ($r){
foreach($r as $rr){
$p = array();
$r = q("SELECT count(*) as `total` FROM `item` WHERE `uid` = %d ",
intval(local_user())
);
- if(count($r))
+ if(dbm::is_result($r))
$total = $r[0]['total'];
// chunk the output to avoid exhausting memory
intval($x),
intval(500)
);
- /*if(count($r)) {
+ /*if(dbm::is_result($r)) {
foreach($r as $rr)
foreach($rr as $k => $v)
$item[][$k] = $v;