Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-21593

PHP7.3+CustomContext

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: Custom Context
    • Labels:
      None
    • ToDo:

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kgupta Kapil Gupta
                Reporter:
                Astashov_Alexey Astashov_Alexey
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.