From 851682cf1805dff29baf2d2c6fb7640a8e35348a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 24 Oct 2014 14:06:31 +0200 Subject: [PATCH] Make page count assertion more sensitive refs #7163 --- library/Icinga/Web/Wizard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index a1c18ab4b1..faf950292e 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -134,8 +134,8 @@ public function addPages(array $pages) 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."); } }