From 25b599a4bd831f175572c2388754e8734a255d77 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 6 May 2015 21:03:33 -0700 Subject: convert ITEM_WALL from bitfield to standalone --- mod/p.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mod/p.php') diff --git a/mod/p.php b/mod/p.php index 1a9555d20..f467ae5a5 100644 --- a/mod/p.php +++ b/mod/p.php @@ -11,9 +11,8 @@ function p_init(&$a) { $mid = str_replace('.xml','',argv(1)); - $r = q("select * from item where mid = '%s' and (item_flags & %d)>0 and item_private = 0 limit 1", - dbesc($mid), - intval(ITEM_WALL) + $r = q("select * from item where mid = '%s' and item_wall = 1 and item_private = 0 limit 1", + dbesc($mid) ); -- cgit v1.2.3