From: Fabrixxm Date: Wed, 7 Nov 2012 14:26:05 +0000 (-0500) Subject: fix uexport query for groups and group members X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98958b4fb9f620a4608848f4d30f4029a3e78936;p=friendica.git fix uexport query for groups and group members --- diff --git a/mod/uexport.php b/mod/uexport.php index f216f551fa..85a3fef5b6 100644 --- a/mod/uexport.php +++ b/mod/uexport.php @@ -1,6 +1,5 @@ $v) @@ -102,7 +102,7 @@ function _uexport_multirow($query) { function _uexport_row($query) { $result = array(); $r = q($query); - if(count($r)) { + if ($r) { foreach($r as $rr) foreach($rr as $k => $v) $result[$k] = $v; @@ -128,20 +128,20 @@ function uexport_account($a){ ); $photo = _uexport_multirow( - sprintf( "SELECT * FROM photo WHERE uid = %d AND profile = 1", intval(local_user()) ) + sprintf( "SELECT * FROM `photo` WHERE uid = %d AND profile = 1", intval(local_user()) ) ); foreach ($photo as &$p) $p['data'] = bin2hex($p['data']); $pconfig = _uexport_multirow( - sprintf( "SELECT * FROM pconfig WHERE uid = %d",intval(local_user()) ) + sprintf( "SELECT * FROM `pconfig` WHERE uid = %d",intval(local_user()) ) ); $group = _uexport_multirow( - sprintf( "SELECT * FROM group WHERE uid = %d",intval(local_user()) ) + sprintf( "SELECT * FROM `group` WHERE uid = %d",intval(local_user()) ) ); $group_member = _uexport_multirow( - sprintf( "SELECT * FROM group_member WHERE uid = %d",intval(local_user()) ) + sprintf( "SELECT * FROM `group_member` WHERE uid = %d",intval(local_user()) ) ); $output = array(