From 8f79e0a7132acfc43bd55022012866656268d53e Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 1 Oct 2014 09:17:48 +0200 Subject: [PATCH] Fix warning "references should be passed by variable only" --- library/Icinga/Web/Wizard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Web/Wizard.php b/library/Icinga/Web/Wizard.php index c60546c90..d64558d9b 100644 --- a/library/Icinga/Web/Wizard.php +++ b/library/Icinga/Web/Wizard.php @@ -326,7 +326,8 @@ class Wizard */ protected function isLastPage(Form $page) { - return $page->getName() === end($this->getPages())->getName(); + $pages = $this->getPages(); + return $page->getName() === end($pages)->getName(); } /**