Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: create $qid and $other var for checkValidityAnswer (#1266)
Dev: this don't change anything, but seems more understandable ? Dev: alternaive : $qid = null; Dev: if(!empty($qinfo['qid']) { $qid = $qinfo['qid'];} Dev: if(empty($qid) && !empty($qinfo['info']['qid']) { …
- Loading branch information
1 parent
31b1111
commit aaf5ebf
Showing
1 changed file
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaf5ebf
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.
Hey, could you please merge this into develop? Really hard to figure out the merge conflicts! Thank you.
aaf5ebf
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.
Arg …
aaf5ebf
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.
@olleharstedt : the worst is controllers/admin/tokens;php …
aaf5ebf
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.
@Shnoulle Yes, I didn't check blame for tokens, but it looked messy. Feel free to contact the commiter for help.
aaf5ebf
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.
I didn't understand why in develop it's
Answer::model()->getAnswerFromCode($qid,$value,$language) == null
, it's same than!Answer::model()->getAnswerFromCode($qid,$value,$language)
…Maybe for scrutinizer ?
aaf5ebf
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.
Good question. Don't know. :)
aaf5ebf
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.
I know …
===
or is_null since answer text can be empty.aaf5ebf
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.
Good catch, Denis!
aaf5ebf
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.
It's OK in master :
[] == false == null == ""
and['0'=>''] != false
aaf5ebf
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.
👍
aaf5ebf
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.
You work on saturday ?
aaf5ebf
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.
Oh no, just browsing around. ^^