aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authortuscanhobbit <tuscanhobbit@users.noreply.github.com>2014-09-28 23:17:47 +0200
committertuscanhobbit <tuscanhobbit@users.noreply.github.com>2014-09-28 23:17:47 +0200
commitf104dc840c79f4ea666a85033bffbf4a33d06f4e (patch)
treef1fce3898b757e3a29e928cc1afe724edb620471 /include/zot.php
parent6e141a8a53ba6cb7d91b989985744fdcd3d6f13d (diff)
parenteaf96f987a5f22a54fdbb4cedef52b0159a37ad0 (diff)
downloadvolse-hubzilla-f104dc840c79f4ea666a85033bffbf4a33d06f4e.tar.gz
volse-hubzilla-f104dc840c79f4ea666a85033bffbf4a33d06f4e.tar.bz2
volse-hubzilla-f104dc840c79f4ea666a85033bffbf4a33d06f4e.zip
Merge from origin
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index b7ffe14e4..828194c3a 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2399,7 +2399,7 @@ function process_channel_sync_delivery($sender,$arr,$deliveries) {
);
if($r) {
// don't count yourself
- $total_friends = ((count($r) > 0) ? $count($r) - 1 : 0);
+ $total_friends = ((count($r) > 0) ? count($r) - 1 : 0);
foreach($r as $rr)
if($rr['abook_flags'] & ABOOK_FLAG_FEED)
$total_feeds ++;
@@ -2407,9 +2407,9 @@ function process_channel_sync_delivery($sender,$arr,$deliveries) {
$disallowed = array('abook_id','abook_account','abook_channel');
- $clean = array();
foreach($arr['abook'] as $abook) {
+ $clean = array();
if($abook['abook_xchan'] && $abook['entry_deleted']) {
logger('process_channel_sync_delivery: removing abook entry for ' . $abook['abook_xchan']);
require_once('include/Contact.php');