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

Weblib error function switchroles_form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Libraries
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In the latest beta, message Notice: Trying to get property of non-object in C:\moodle19\moodle\lib\weblib.php on line 4597

      Problem is that $user is undefined. Changing to $USER fixes the warning and produces the correct button for "Return to my normal role".

      Version of Weblib: $Id: weblib.php,v 1.965 2007-10-08 00:42:41 toyomoyo Exp

        Attachments

          Activity

            People

            Assignee:
            dougiamas Martin Dougiamas
            Reporter:
            ganderson Gary Anderson
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08