Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7140

count(): Parameter must be countable

    XMLWordPrintable

    Details

      Description

      Line 2859 of the file questionnaire.class.php is counting a boolean value:
      if (count(array_intersect($choicetypes, $uniquetypes) > 0 )) {

      Better to move the bracket to have something countable
      if (count(array_intersect($choicetypes, $uniquetypes)) > 0) {

        Attachments

          Activity

            People

            Assignee:
            mchurch Mike Churchward
            Reporter:
            rdebleu Renaat Debleu
            Participants:
            Component watchers:
            Mike Churchward
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Sep/17