Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
c0c2384c
Commit
c0c2384c
authored
Aug 07, 2015
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix database error when profile fields are missing
parent
544e36a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
qa-filter-basic.php
qa-include/plugins/qa-filter-basic.php
+3
-1
No files found.
qa-include/plugins/qa-filter-basic.php
View file @
c0c2384c
...
...
@@ -104,7 +104,9 @@ class qa_filter_basic
public
function
filter_profile
(
&
$profile
,
&
$errors
,
$user
,
$oldprofile
)
{
foreach
(
$profile
as
$field
=>
$value
)
{
foreach
(
array_keys
(
$profile
)
as
$field
)
{
// ensure fields are not NULL
$profile
[
$field
]
=
(
string
)
$profile
[
$field
];
$this
->
validate_field_length
(
$errors
,
$profile
,
$field
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment