diff --git a/lib/weblib.php b/lib/weblib.php index f301307efe4..ad24aed5587 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3479,7 +3479,7 @@ function update_categories_button() { global $CFG, $USER; if (isadmin()) { - if (!empty($USER->categoriesediting)) { + if (!empty($USER->categoryediting)) { $string = get_string('turneditingoff'); $edit = 'off'; } else {