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

Null check #3

Merged
merged 2 commits into from
Jun 22, 2020
Merged

Null check #3

merged 2 commits into from
Jun 22, 2020

Conversation

qadan
Copy link

@qadan qadan commented Jun 17, 2020

See fsulib#14

}
else {
foreach ($relationships as $relationship) {
if (!$relationship) {
$nids = NULL;
$nids = [];

Choose a reason for hiding this comment

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

Seems like some weird stuff going on in this function in general... should it be setting $nids as en empty array at the start of the function, and then merging things in?... 'cause if there happened to be multiple relationships, whatever the last one sets would win? Possibly an empty array? Dunno... seems spooky?

@adam-vessey adam-vessey merged commit 320a098 into discoverygarden:8.x-1.x Jun 22, 2020
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.

2 participants