Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/helpers/user_helper.php
Show First 20 Lines • Show All 264 Lines • ▼ Show 20 Line(s) | |||||
if ( $this->Application->isDebugMode() ) { | if ( $this->Application->isDebugMode() ) { | ||||
return Array (); | return Array (); | ||||
} | } | ||||
if ( !isset($cache) ) { | if ( !isset($cache) ) { | ||||
$sql = 'SELECT IPRestrictions, GroupId | $sql = 'SELECT IPRestrictions, GroupId | ||||
FROM ' . TABLE_PREFIX . 'UserGroups | FROM ' . TABLE_PREFIX . 'UserGroups | ||||
WHERE IPRestrictions IS NOT NULL'; | WHERE COALESCE(IPRestrictions, "") <> ""'; | ||||
$cache = $this->Conn->GetCol($sql, 'GroupId'); | $cache = $this->Conn->GetCol($sql, 'GroupId'); | ||||
} | } | ||||
return $cache; | return $cache; | ||||
} | } | ||||
/** | /** | ||||
* Performs user logout | * Performs user logout | ||||
▲ Show 20 Lines • Show All 444 Lines • Show Last 20 Lines |