Skip to content

Commit

Permalink
Make page count assertion more sensitive
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Oct 24, 2014
1 parent 1bd5868 commit 851682c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Icinga/Web/Wizard.php
Expand Up @@ -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.");
}
}

Expand Down

0 comments on commit 851682c

Please sign in to comment.