[Fusionforge-commits] r15321 - branches/Branch_5_2/src/common/include
Franck VILLAUME
nerville at fusionforge.org
Mon Apr 9 17:30:58 CEST 2012
Author: nerville
Date: 2012-04-09 17:30:56 +0200 (Mon, 09 Apr 2012)
New Revision: 15321
Modified:
branches/Branch_5_2/src/common/include/Group.class.php
Log:
fix wrong php function use: in_array -> array_key_exists
Modified: branches/Branch_5_2/src/common/include/Group.class.php
===================================================================
--- branches/Branch_5_2/src/common/include/Group.class.php 2012-04-09 14:24:15 UTC (rev 15320)
+++ branches/Branch_5_2/src/common/include/Group.class.php 2012-04-09 15:30:56 UTC (rev 15321)
@@ -686,7 +686,7 @@
// Check that status transition is valid
if ($this->getStatus() != $status
- && !in_array($this->getStatus(). $status,$allowed_status_changes)) {
+ && !array_key_exists($this->getStatus(). $status,$allowed_status_changes)) {
$this->setError(_('Invalid Status Change'));
return false;
}
More information about the Fusionforge-commits
mailing list