diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index a1c18ab4b..faf950292 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -134,8 +134,8 @@ class Wizard protected function assertHasPages() { $pages = $this->getPages(); - if (empty($pages)) { - throw new LogicException('Although Chuck Norris can advance a wizard without any pages, you can\'t.'); + if (count($pages) < 2) { + throw new LogicException("Although Chuck Norris can advance a wizard with less than two pages, you can't."); } }