[Fusionforge-commits] r10397 - trunk/src/plugins/wiki/common

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Thu Sep 2 21:07:57 CEST 2010


Author: vargenau
Date: 2010-09-02 21:07:57 +0200 (Thu, 02 Sep 2010)
New Revision: 10397

Modified:
   trunk/src/plugins/wiki/common/WikiPlugin.class.php
Log:
Avoid warning about unset params['toptab']

Modified: trunk/src/plugins/wiki/common/WikiPlugin.class.php
===================================================================
--- trunk/src/plugins/wiki/common/WikiPlugin.class.php	2010-09-02 19:04:30 UTC (rev 10396)
+++ trunk/src/plugins/wiki/common/WikiPlugin.class.php	2010-09-02 19:07:57 UTC (rev 10397)
@@ -77,7 +77,9 @@
 				//$params['DIRS'][]='/plugins/wiki/index.php?off=true';
 			}
 							
-			(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
+			if (isset($params['toptab'])) {
+				(($params['toptab'] == $this->name) ? $params['selected']=(count($params['TITLES'])-1) : '' );
+			}
 		} elseif ($hookname == "groupisactivecheckbox") {
                         //Check if the group is active
 			$group = &group_get_object($group_id);




More information about the Fusionforge-commits mailing list