From 035b96a9d9f904a6d296a1bad738e8de30f272dc Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 30 Sep 2009 22:35:48 +0000 Subject: [PATCH] unittests: NOBUG fix pagelib unit tests Fix regression caused by my earlier commit. (It was preventing a new install.) --- lib/blocklib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 9c3a0f6465..6f6aa04a61 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -368,7 +368,9 @@ class block_manager { */ public function set_default_region($defaultregion) { $this->check_not_yet_loaded(); - $this->check_region_is_known($defaultregion); + if ($defaultregion) { + $this->check_region_is_known($defaultregion); + } $this->defaultregion = $defaultregion; } -- 2.39.5