From eaa208634a1e6b06f4bf6da799ca525d07b4187e Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 1 Nov 2017 18:16:28 -0700 Subject: [PATCH] Fixes #2840 - "Everyone but.." visibility for sitelinks was failing. --- e107_handlers/sitelinks_class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index b1307207b..7328b83f9 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1653,14 +1653,12 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } $ins = ($cat > 0) ? " link_category = ".intval($cat)." AND " : ""; - $query = "SELECT * FROM #links WHERE ".$ins." ((link_class >= 0 AND link_class IN (".USERCLASS_LIST.")) OR (link_class < 0 AND link_class NOT IN (".USERCLASS_LIST.")) ) ORDER BY link_order,link_parent ASC"; + $query = "SELECT * FROM #links WHERE ".$ins." ((link_class >= 0 AND link_class IN (".USERCLASS_LIST.")) OR (link_class < 0 AND ABS(link_class) NOT IN (".USERCLASS_LIST.")) ) ORDER BY link_order,link_parent ASC"; $outArray = array(); $data = $sql->retrieve($query,true); - - $ret = $this->compile($data, $outArray); if(!empty($opt['flat']))