[Fusionforge-commits] r15311 - branches/Branch_5_2/src/www/admin

Franck VILLAUME nerville at fusionforge.org
Mon Apr 9 11:03:37 CEST 2012


Author: nerville
Date: 2012-04-09 11:03:37 +0200 (Mon, 09 Apr 2012)
New Revision: 15311

Modified:
   branches/Branch_5_2/src/www/admin/admin_table.php
Log:
fix wrong query

Modified: branches/Branch_5_2/src/www/admin/admin_table.php
===================================================================
--- branches/Branch_5_2/src/www/admin/admin_table.php	2012-04-09 08:52:55 UTC (rev 15310)
+++ branches/Branch_5_2/src/www/admin/admin_table.php	2012-04-09 09:03:37 UTC (rev 15311)
@@ -4,6 +4,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright 2010 (c) Franck Villaume - Capgemini
+ * Copyright 2012, Franck Villaume - TrivialDev
  *
  * This file is part of FusionForge. FusionForge is free software;
  * you can redistribute it and/or modify it under the terms of the
@@ -130,7 +131,7 @@
 	if ($unit == "supported_language") {
 		$result = db_numrows(db_query_params("SELECT language FROM users WHERE language=$1", array($id)));
 		if ($result > 0) {
-			echo '<div class="warning_msg">'.sprintf(_('You can\'t delete the language %1$s since it\'s currently referenced in a user profile.'), db_result(db_query_params ('select license_name from licenses where license_id = $1',
+			echo '<div class="warning_msg">'.sprintf(_('You can\'t delete the language %1$s since it\'s currently referenced in a user profile.'), db_result(db_query_params ('select language from users where language = $1',
 			array($id)), 0, 0)).'</div>';
 			return;
 		}




More information about the Fusionforge-commits mailing list