Skip to content
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

allowing real display_name select queries to be performed #47

Merged
merged 1 commit into from
Mar 7, 2014

Conversation

BaseOfASE-Corp
Copy link
Contributor

No description provided.

@elijahsummers
Copy link
Contributor

There are no legitimate cases where the value should be null, right? (I can't think of anything off the top of my head)
👍

@BaseOfASE-Corp
Copy link
Contributor Author

nope, it will either return a large query string or null

BaseOfASE-Corp added a commit that referenced this pull request Mar 7, 2014
allowing real display_name select queries to be performed
@BaseOfASE-Corp BaseOfASE-Corp merged commit afaf286 into master Mar 7, 2014
@BaseOfASE-Corp BaseOfASE-Corp deleted the display_name_fix branch March 7, 2014 01:39
$value = static::comboKeyValue($key, $value, $config);
if($value == null){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!$value) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if ($value === null) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (is_null($value)) { ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_null($value) is much slower than $value === null if you do it a billion times. Maybe we can add it to a loop to do it a billion times to justify $value === null over is_null() ? :D

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. We should probably write this portion as a php plugin in C 😏

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I've never done one of those. Might be interesting to dive into the ugly flamewar-ridden underbelly of PHP.
...what am I saying?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants