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

question_attempt_step should warn when accessing uninitialized user property

XMLWordPrintable

      The function question_attempt_step:get_user() returns the $user property which might not have been initialized. Also, get_user_fullname() accesses the same property. It will then silently return an empty string without notifying the caller that something went wrong and how the problem can be solved.

       

            philippimhof Philipp Imhof
            philippimhof Philipp Imhof
            Tim Hunt Tim Hunt
            Huong Nguyen Huong Nguyen
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 26 minutes
                2h 26m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.