diff options
author | friendica <info@friendica.com> | 2013-01-29 02:04:07 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-29 02:05:21 -0800 |
commit | b2d03eb55c9e1047f39a2f7fb3a57f3631e12924 (patch) | |
tree | 2b2be7505a9e1c8129b1202e07e7859c7bb44971 /include/onepoll.php | |
parent | 3cf3f7437ea4c25c7a7fdcf04bfcf72be2d32698 (diff) | |
download | volse-hubzilla-b2d03eb55c9e1047f39a2f7fb3a57f3631e12924.tar.gz volse-hubzilla-b2d03eb55c9e1047f39a2f7fb3a57f3631e12924.tar.bz2 volse-hubzilla-b2d03eb55c9e1047f39a2f7fb3a57f3631e12924.zip |
convert mod/follow to associative json and add more logging for when things go wrong
Diffstat (limited to 'include/onepoll.php')
-rw-r--r-- | include/onepoll.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/onepoll.php b/include/onepoll.php index 5bc7742d1..f97846026 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -38,7 +38,7 @@ function onepoll_run($argv, $argc){ FROM abook LEFT JOIN account on abook_account = account_id left join xchan on xchan_hash = abook_xchan where abook_id = %d AND (( abook_flags = %d ) OR ( abook_flags = %d )) - AND (( account_flags = %d ) OR ( account_flags = %d )) ORDER BY RAND()", + AND (( account_flags = %d ) OR ( account_flags = %d )) limit 1", intval($contact_id), intval(ABOOK_FLAG_HIDDEN), intval(0), @@ -47,12 +47,10 @@ function onepoll_run($argv, $argc){ ); if(! $contacts) { + logger('onepoll: abook_id not found: ' . $contact_id); return; } - if(! $contacts) - return; - $contact = $contacts[0]; $t = $contact['abook_updated']; |