MDL-79747 quiz stats: task should run as admin the right way
commitec0c4e18ada70a8c12e9e8ca8c0a8ca6bd47f2f9
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 17 Oct 2023 15:38:40 +0000 (17 16:38 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 17 Oct 2023 15:38:44 +0000 (17 16:38 +0100)
tree3158e683fe108953dbf8f8669a5ebc0f0074dfd7
parent23b86254d3182bb7cef45aa755a7a06a5d03faaa
MDL-79747 quiz stats: task should run as admin the right way

The correct way to get an ad-hoc task to run as the main admin account
is to leave userid as null.

Setting it causes fatal errors if the main admin account is set to
auth: nologin.
mod/quiz/report/statistics/classes/task/recalculate.php