-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 13
-
Fix Version/s: 13
-
Component/s: Custom Context
-
Labels:None
-
ToDo:
-
Module Fix Version:
Hello, the CustomContext v13.0.3.1 module doesn't work with PHP7.3 on FreePBX 15
I've made some changes in the file function.inc.php and now the CustomContext module works for me fine. The problem was in constant sections $val[allow] --> ['allow'] and [sort] --> ['sort']
diff functions.inc.php functions.inc.php.ORI
698c698
< if ($val['allow'] <> 'no') {
—
> if ($val[allow] <> 'no') {
702,703c702,703
< if (is_numeric($val['allow'])) {
< $timegroup = $val['allow'];
—
> if (is_numeric($val[allow])) {
> $timegroup = $val[allow];
705,706c705,706
< if ($val['allow'] <> 'yes') {
< $userules = $val['allow'];
—
> if ($val[allow] <> 'yes') {
> $userules = $val[allow];
709,710c709,710
< if (is_numeric($val['sort'])) {
< $sort = $val['sort'];
—
> if (is_numeric($val[sort])) {
> $sort = $val[sort];
Please check my correction and do the next signed update the module for all version (v.13+) of the FreePBX. Thank you.