nomadicjosh / eduTrac-SIS

eduTrac SIS is the most advanced open source student information system for higher education.
https://www.edutracsis.com/
GNU General Public License v3.0
46 stars 28 forks source link

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

Open apmuthu opened 6 years ago

apmuthu commented 6 years ago

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 commented 6 years ago

Thanks.

nomadicjosh commented 3 years ago

is_null should not be used and will be replaced.