vanderbilt-redcap / email-alerts-module

Module to send customized emails alerts after a form/survey is completed to one or several recipients.
MIT License
2 stars 9 forks source link

Update config.json with min php version #2

Closed lsgs closed 6 years ago

lsgs commented 6 years ago

The module contains many instances of a function being passed to empty(), which is not allowed in php < 5.5. Only a variable may be supplied. E.g. configure.php, line 15: $from_default = empty(ExternalModules::getProjectSetting($prefix, $pid, 'email-sender'))?array():ExternalModules::getProjectSetting($prefix, $pid, 'email-sender').',"'.$emailTriggerModule->getProjectSetting('emailSender_var').'"'; ...generates the error... Fatal error: Can't use function return value in write context in C:\Users\luke.stevens\Documents\UniServerZ\ssl\redcap\modules\email_alerts_v1.1\configure.php on line 15 There are many other similar occurrences in this module.