Skip to content

Commit

Permalink
Merge branch 'MDL-77953_401' of https://github.com/stronk7/moodle int…
Browse files Browse the repository at this point in the history
…o MOODLE_401_STABLE
  • Loading branch information
junpataleta committed Apr 19, 2023
2 parents fc67643 + e9fcdec commit 799e962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pagelib.php
Expand Up @@ -1873,7 +1873,7 @@ protected function initialise_default_pagetype($script = null) {
}

if (is_null($script)) {
$script = ltrim($SCRIPT, '/');
$script = ltrim($SCRIPT ?? '', '/');
$len = strlen($CFG->admin);
if (substr($script, 0, $len) == $CFG->admin) {
$script = 'admin' . substr($script, $len);
Expand Down

0 comments on commit 799e962

Please sign in to comment.