code review: check precedence

This commit is contained in:
Mike Macgirvin 2024-06-16 10:51:09 +10:00
parent 718d5aee94
commit 1c2075a1c0

View file

@ -567,7 +567,7 @@ function check_deliver_permissions($item, $arr)
// Send mentions even if you have no permission to do so. They might allow it. // Send mentions even if you have no permission to do so. They might allow it.
if ($terms) { if ($terms) {
foreach ($terms as $term) { foreach ($terms as $term) {
$r = q("select * from hubloc where hubloc_hash = '%s' or hubloc_id_url = '%s' and hubloc_deleted = 0", $r = q("select * from hubloc where (hubloc_hash = '%s' or hubloc_id_url = '%s') and hubloc_deleted = 0",
dbesc($term['url']), dbesc($term['url']),
dbesc($term['url']) dbesc($term['url'])
); );