Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.1
    • Fix Version/s: 4.5.2
    • Component/s: None
    • Labels:
      None

      Description

      Someone reported receiving this error when adding a server/module row in the ISPConfig module.

      count(): Parameter must be an array or an object that implements Countable on line 72 in /path/to/components/modules/ispconfig/views/default/add_row.pdt

      Tyson suggested we change line 72 from:

      $num_servers = count($this->Html->ifSet($vars->name_servers));

      to:

      $num_servers = count($this->Html->ifSet($vars->name_servers, []));

        Activity

        Hide
        admin Paul Phillips added a comment -

        Also resolve in edit_row

        Show
        admin Paul Phillips added a comment - Also resolve in edit_row

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              4/Apr/19

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 22 minutes
              22m

                Agile