From 248bcb0731ead3ba60258389d242baccf5935055 Mon Sep 17 00:00:00 2001 From: Franck VILLAUME Date: Mon, 9 Apr 2012 14:18:26 +0000 Subject: [PATCH] fix php warning #379 --- src/common/include/Group.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/include/Group.class.php b/src/common/include/Group.class.php index 109490e2f4..768263c846 100644 --- a/src/common/include/Group.class.php +++ b/src/common/include/Group.class.php @@ -6,6 +6,7 @@ * Copyright 2009-2010, Roland Mas * Copyright 2010-2011, Franck Villaume - Capgemini * Copyright 2010-2011, Alain Peyrat - Alcatel-Lucent + * Copyright 2012, Franck Villaume - TrivialDev * http://fusionforge.org * * This file is part of FusionForge. FusionForge is free software; @@ -685,7 +686,7 @@ class Group extends Error { // Check that status transition is valid if ($this->getStatus() != $status - && !$allowed_status_changes[$this->getStatus().$status]) { + && !in_array($this->getStatus(). $status,$allowed_status_changes)) { $this->setError(_('Invalid Status Change')); return false; } -- 2.30.2