diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-06 21:03:33 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-06 21:03:33 -0700 |
commit | 25b599a4bd831f175572c2388754e8734a255d77 (patch) | |
tree | 16559183d5d004c430dd8d83171bb9348e784021 /include/api.php | |
parent | 75b8bfc07a2431a6d4d5f2f72864d6cd3aa33cf6 (diff) | |
download | volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.tar.gz volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.tar.bz2 volse-hubzilla-25b599a4bd831f175572c2388754e8734a255d77.zip |
convert ITEM_WALL from bitfield to standalone
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/api.php b/include/api.php index 2491e500b..7fea00d81 100644 --- a/include/api.php +++ b/include/api.php @@ -344,10 +344,9 @@ require_once('include/items.php'); // count public wall messages $r = q("SELECT COUNT(`id`) as `count` FROM `item` WHERE `uid` = %d - AND ( item_flags & %d )>0 and item_restrict = 0 + AND item_wall = 1 and item_restrict = 0 AND `allow_cid`='' AND `allow_gid`='' AND `deny_cid`='' AND `deny_gid`=''", - intval($usr[0]['channel_id']), - intval(ITEM_WALL) + intval($usr[0]['channel_id']) ); $countitms = $r[0]['count']; } |