diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 661f1f2d1e3..4752d7f9c2d 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -2863,7 +2863,9 @@ class custom_menu extends custom_menu_item { case 1: try { $itemurl = new moodle_url($setting); - } catch (Exception $e) { + } catch (moodle_exception $exception) { + // We're not actually worried about this, we don't want to mess up the display + // just for a wrongly entered URL. $itemurl = null; } break;