From 6a42d3708ccf0d9e35a1c9cced28d00946b40c26 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 3 Jan 2013 16:30:35 -0800 Subject: change precedence of bitwise operation --- include/zot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/zot.php b/include/zot.php index c4e7459ac..bf5bdd578 100644 --- a/include/zot.php +++ b/include/zot.php @@ -186,7 +186,7 @@ function zot_refresh($them,$channel = null) { if($them['hubloc_url']) $url = $them['hubloc_url']; else { - $r = q("select hubloc_url from hubloc where hubloc_hash = '%s' and hubloc_flags & %d limit 1", + $r = q("select hubloc_url from hubloc where hubloc_hash = '%s' and ( hubloc_flags & %d ) limit 1", dbesc($them['xchan_hash']), intval(HUBLOC_FLAGS_PRIMARY) ); -- cgit v1.2.3