Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804073
D285.id701.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 26, 9:05 AM
Size
475 B
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:05 AM (5 h, 11 m)
Engine
blob
Format
Raw Data
Handle
576787
Attached To
D285: INP-1670 - Check for empty/null value in "UserHelper::getGroupsWithIPRestrictions" method
D285.id701.diff
View Options
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
Log In to Comment