[Fusionforge-commits] r7845 - trunk/gforge/plugins/extratabs/www

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Jun 17 17:30:49 CEST 2009


Author: lolando
Date: 2009-06-17 17:30:48 +0200 (Wed, 17 Jun 2009)
New Revision: 7845

Modified:
   trunk/gforge/plugins/extratabs/www/index.php
Log:
Fixed logic

Modified: trunk/gforge/plugins/extratabs/www/index.php
===================================================================
--- trunk/gforge/plugins/extratabs/www/index.php	2009-06-17 15:25:00 UTC (rev 7844)
+++ trunk/gforge/plugins/extratabs/www/index.php	2009-06-17 15:30:48 UTC (rev 7845)
@@ -72,7 +72,7 @@
 		$res = db_query_params ('UPDATE plugin_extratabs_main SET index=-(index-1) WHERE group_id=$1 AND index > $2',
 					array ($group_id,
 					       $index)) ;
-		$res = db_query_params ('UPDATE plugin_extratabs_main SET index=-index WHERE group_id=$1 AND index > $2',
+		$res = db_query_params ('UPDATE plugin_extratabs_main SET index=-index WHERE group_id=$1 AND index < 0',
 					array ($group_id,
 					       $index)) ;
 		db_commit () ;




More information about the Fusionforge-commits mailing list