Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24271

array_push with one param only in scorm

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      function scorm_get_ancestors($sco) {
      if ($sco->parent != '/')

      { return array_push(scorm_get_ancestors(scorm_get_parent($sco))); }

      else

      { return $sco; }

      }

      should be array_pop()?

        Attachments

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            skodak Petr Skoda
            Tester:
            Nobody
            Participants:
            Component watchers:
            Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10