Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
restrict_by_ip-3156173
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
restrict_by_ip-3156173
Commits
3d1fedc5
Commit
3d1fedc5
authored
10 years ago
by
Brandon Williams
Browse files
Options
Downloads
Patches
Plain Diff
Fix PHP notice when creating user
parent
ad96050d
No related branches found
Branches containing commit
Tags
7.x-3.0-beta1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
restrict_by_ip.module
+1
-1
1 addition, 1 deletion
restrict_by_ip.module
with
1 addition
and
1 deletion
restrict_by_ip.module
+
1
−
1
View file @
3d1fedc5
...
...
@@ -117,7 +117,7 @@ function restrict_by_ip_user_login(&$edit, &$account) {
* Implementation of hook_user_insert().
*/
function
restrict_by_ip_user_insert
(
&
$edit
,
$account
,
$category
)
{
if
(
strlen
(
$edit
[
'restrict_by_ip_address'
])
>
0
)
{
if
(
isset
(
$edit
[
'restrict_by_ip_address'
])
&&
strlen
(
$edit
[
'restrict_by_ip_address'
])
>
0
)
{
// If an IP restriction is set, add it to database
db_query
(
"INSERT INTO
{
restrict_by_ip
}
(uid, restrict_by_ip_address) VALUES (:uid, :ip)"
,
array
(
':uid'
=>
$edit
[
'uid'
],
$edit
[
'restrict_by_ip_address'
]));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment