Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

fixes invalid argument in foreach block for mobile app date#4764

Merged
chloealee merged 2 commits intoDoSomethingArchive:devfrom
chloealee:fix-mobile-app-date-bug
Jul 30, 2015
Merged

fixes invalid argument in foreach block for mobile app date#4764
chloealee merged 2 commits intoDoSomethingArchive:devfrom
chloealee:fix-mobile-app-date-bug

Conversation

@chloealee
Copy link
Contributor

Refs #4754

Fixes #4763

Copy link
Contributor

Choose a reason for hiding this comment

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

does if(isset($timing['dates'])` work here, we tend to use that as the standard check

Copy link
Contributor

Choose a reason for hiding this comment

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

the method @angaither suggests, isset() will actually check if the variable is null or even exists. So it might be possible that the variable might not even exist (which is happening in the bug I'm working on right now), and isset() helps check for both scenarios :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahhh got it - way more efficient! Will change it, thank you both!

@angaither
Copy link
Contributor

Also, can you ref which issue this is fixing

@weerd
Copy link
Contributor

weerd commented Jul 30, 2015

👍

1 similar comment
@angaither
Copy link
Contributor

👍

chloealee added a commit that referenced this pull request Jul 30, 2015
fixes invalid argument in foreach block for mobile app date
@chloealee chloealee merged commit 76c82fb into DoSomethingArchive:dev Jul 30, 2015
@chloealee chloealee deleted the fix-mobile-app-date-bug branch July 30, 2015 16:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants