Moodle
  1. Moodle
  2. MDL-2264

undefined sesskey in block_admin.php

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.3
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_14_STABLE

      Description

      When the admin is logged in as a student, goes to the site home page, then clicks on his own name to log in as himself, the admin block gives the notice: Undefined property: sesskey .. on line 52 of blocks\admin\block_admin.php

        Gliffy Diagrams

          Activity

          Hide
          Martin Dougiamas added a comment -

          From Jon Papaioannou (pj at moodle.org) Wednesday, 12 January 2005, 07:44 PM:

          Fixed in 1.4 and HEAD too.

          Added a new function set_user_sesskey() to moodlelib.php which sets a new sesskey if one doesn't already exist. It then returns the sesskey (new or existing).

          If in doubt, simply writing set_user_sesskey() instead of $USER->sesskey now is guaranteed to return a value.

          Show
          Martin Dougiamas added a comment - From Jon Papaioannou (pj at moodle.org) Wednesday, 12 January 2005, 07:44 PM: Fixed in 1.4 and HEAD too. Added a new function set_user_sesskey() to moodlelib.php which sets a new sesskey if one doesn't already exist. It then returns the sesskey (new or existing). If in doubt, simply writing set_user_sesskey() instead of $USER->sesskey now is guaranteed to return a value.
          Hide
          Michael Blake added a comment -

          Temporary transition to reassign bug to "pj".

          Show
          Michael Blake added a comment - Temporary transition to reassign bug to "pj".
          Hide
          Michael Blake added a comment -

          Re-closing bugs after re-assigning to "pj".

          Show
          Michael Blake added a comment - Re-closing bugs after re-assigning to "pj".

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: