-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] Fix bug where $val=0 would pass as blank! #2626
Conversation
@@ -1080,7 +1080,7 @@ class NDB_BVL_Instrument extends NDB_Page | |||
$flag = true; | |||
if (is_array($elvalue)) { | |||
foreach ($elvalue AS $val) { | |||
if ($val == "") { | |||
if ($val === "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gluneau This change should also be done on line 1091 as the same comparison is made
@gluneau even tho this does fix the issue, it seems to be a change in behaviour. some code might be relying on it (http://php.net/manual/en/types.comparisons.php) |
After a quick check across instruments, it seems like they would have similar returns for other elements |
@ridz1208 This is still tagged as requested changes by you. It looks fine to me, is there anything wrong with it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@driusan this is ready. take a look at it
This bug affected the upload capability of LorisForm for addFile()
cause: