diff options
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Dirsearch.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php index c0df8a1e3..633ae69f0 100644 --- a/Zotlabs/Module/Dirsearch.php +++ b/Zotlabs/Module/Dirsearch.php @@ -215,9 +215,11 @@ class Dirsearch extends Controller { if($sync) { $spkt = array('transactions' => array()); - $r = q("select * from updates where ud_date >= '%s' and ud_guid != '' and ud_addr != '' order by ud_date desc", + + $r = q("select * from updates where ud_date >= '%s' order by ud_date desc", dbesc($sync) ); + if($r) { foreach($r as $rr) { $flags = array(); @@ -235,6 +237,7 @@ class Dirsearch extends Controller { ); } } + json_return_and_die($spkt); } else { |