aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-05 16:21:03 -0800
committerfriendica <info@friendica.com>2014-11-05 16:21:03 -0800
commit3b22e2f5f508cb5e45ae426210e5ca9fe9115417 (patch)
tree93790ebab894b1133eac146f372810aae422cf79 /include/follow.php
parentb16ee29cc338236264e62cf40248f54a1f785dbd (diff)
downloadvolse-hubzilla-3b22e2f5f508cb5e45ae426210e5ca9fe9115417.tar.gz
volse-hubzilla-3b22e2f5f508cb5e45ae426210e5ca9fe9115417.tar.bz2
volse-hubzilla-3b22e2f5f508cb5e45ae426210e5ca9fe9115417.zip
some minor cleanup of unreported (and as yet undiscovered) issues with permissions toggling. No smoking guns and no obvious issues discovered here. Repeated and tried to duplicate zottell's issue as described without seeing any obvious problems.
Diffstat (limited to 'include/follow.php')
-rw-r--r--include/follow.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/follow.php b/include/follow.php
index b5196834d..421bdd083 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -203,8 +203,9 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
return $result;
}
- $r = q("select count(*) as total from abook where abook_account = %d and ( abook_flags & ABOOK_FLAG_FEED )",
- intval($aid)
+ $r = q("select count(*) as total from abook where abook_account = %d and ( abook_flags & %d )",
+ intval($aid),
+ intval(ABOOK_FLAG_FEED)
);
if($r)
$total_feeds = $r[0]['total'];