[Fusionforge-commits] r13759 - trunk/src/plugins/mantisbt/common
Franck VILLAUME
nerville at fusionforge.org
Tue Jul 12 15:22:50 CEST 2011
Author: nerville
Date: 2011-07-12 15:22:50 +0200 (Tue, 12 Jul 2011)
New Revision: 13759
Modified:
trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
Log:
fix check for widget in case of user
Modified: trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
===================================================================
--- trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php 2011-07-12 12:35:41 UTC (rev 13758)
+++ trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php 2011-07-12 13:22:50 UTC (rev 13759)
@@ -155,7 +155,7 @@
}
case "widget_instance": {
$group = group_get_object($GLOBALS['group_id']);
- if ($group->usesPlugin($this->name)) {
+ if ((is_object($group)? $group->usesPlugin($this->name) : false) || $G_SESSION->usesPlugin($this->name)) {
return $this->myPageBox($params);
}
break;
More information about the Fusionforge-commits
mailing list