mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Issue #2840 - Legacy Navigation fix.
This commit is contained in:
@@ -34,7 +34,7 @@ class sitelinks
|
|||||||
$this->eLinkList = array(); // clear the array in case getlinks is called 2x on the same page.
|
$this->eLinkList = array(); // clear the array in case getlinks is called 2x on the same page.
|
||||||
$sql = e107::getDb('sqlSiteLinks');
|
$sql = e107::getDb('sqlSiteLinks');
|
||||||
$ins = ($cat > 0) ? "link_category = ".intval($cat)." AND " : "";
|
$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 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 ASC";
|
||||||
if($sql->gen($query))
|
if($sql->gen($query))
|
||||||
{
|
{
|
||||||
while ($row = $sql->fetch())
|
while ($row = $sql->fetch())
|
||||||
|
Reference in New Issue
Block a user