Page MenuHomeIn-Portal Phabricator

D285.id701.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:05 AM

D285.id701.diff

Index: core/units/helpers/user_helper.php
===================================================================
--- core/units/helpers/user_helper.php
+++ core/units/helpers/user_helper.php
@@ -270,7 +270,7 @@
if ( !isset($cache) ) {
$sql = 'SELECT IPRestrictions, GroupId
FROM ' . TABLE_PREFIX . 'UserGroups
- WHERE IPRestrictions IS NOT NULL';
+ WHERE COALESCE(IPRestrictions, "") <> ""';
$cache = $this->Conn->GetCol($sql, 'GroupId');
}

Event Timeline