Topic: PHP notices when adding an event an running PHP version > 7.3

When running a PHP version > 7.3 on your server, you may get several of the following PHP notices when adding a new event:

"Notice: Trying to access array offset on value of type bool in /home/caregive/public_html/luxcal/pages/event.php on line 213"

This problem only happens when running a PHP version > 7.3 on your server and can be solved as follows:

Edit the pages/event.php file and chang line 182 from . . .

$cid = isset($_POST['cid']) ? $_POST['cid'] : ($eCats[0] == '0' ? 0 : intval($eCats[0]));

to . . .

$cid = isset($_POST['cid']) ? $_POST['cid'] : ($eCats[0] == '0' ? 1 : intval($eCats[0]));

(only the 0 before ": intval" changed to 1)

Roel