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

e6.3.4 - Null value in in_array() #45

Open
apmuthu opened this issue Nov 8, 2017 · 2 comments
Open

e6.3.4 - Null value in in_array() #45

apmuthu opened this issue Nov 8, 2017 · 2 comments
Milestone

Comments

@apmuthu
Copy link

apmuthu commented Nov 8, 2017

Line 16 in app/dropins/system.dropin.php:
if(!in_array('cc', $email->fields())) {
should be:
if(is_null($email->fields()) || !in_array('cc', $email->fields())) {
to avoid errors like:
in_array() expects parameter 2 to be array, null given

Similarly, lines 139 and 677 in app/src/Core/NodeQ/CoreDatabase.php:
$schema = $this->schema();
should be:
$schema = is_null($this->schema()) ? array() : $this->schema();

Precede line 42 in app/src/Core/NodeQ/Helpers/Config.php with:
if (is_null($this->schema())) return array();

Also the following file is missing:
/var/lib/php5/sessions/edutracsis/nodes/etsis/student_email.config.node

@nomadicjosh
Copy link
Owner

Thanks.

@nomadicjosh nomadicjosh added this to the 7.0 milestone Jul 9, 2021
@nomadicjosh
Copy link
Owner

is_null should not be used and will be replaced.

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

No branches or pull requests

2 participants