PHP warning fixes
File: interface/super/rules/controllers/alerts/controller.php
A warning is thrown when entering the alerts page and another error when saving. The issue occurs due to "creating default object from empty val” when instantiating the object.
I’ve added an if condition under isset to check if it’s null before passing the object into the var.
File: interface/main/calendar/modules/PostCalendar/pnadmin.php
PHP7 compatibility error due to function passed by reference. Removed AMPERSAND.
File: controllers/C_Document.class.php
When entering the documents tab in the patient main view an error is thrown, the folder ‘doctemplates’ does not exist at first, as long as no document templates has been uploaded.
Added to controllers/C_Document.class.php check whether the folder exists.
File: library/options.inc.php
When going into admin>alerts there are 2 warnings thrown, one for the first view, and the 2nd one after pressing the save button. This occurs in options.inc.php when optionalAge() function does not receive parameters.