Author: danydb
Date: 2011-11-23 16:02:33 +0100 (Wed, 23 Nov 2011)
New Revision: 4452
Modified:
phpcompta/trunk/include/class_user.php
Log:
#468 CFGSEC Changement du profile pour utilisateur global sauf phpcompta: bug
pour insert_global_pref
Modified: phpcompta/trunk/include/class_user.php
===================================================================
--- phpcompta/trunk/include/class_user.php 2011-11-23 14:39:55 UTC (rev
4451)
+++ phpcompta/trunk/include/class_user.php 2011-11-23 15:02:33 UTC (rev
4452)
@@ -626,14 +626,14 @@
{
foreach ($default_parameter as $name => $value)
{
- $Insert = sprintf($Sql, $this->id, $name,
$value);
+ $Insert = sprintf($Sql, $this->login, $name,
$value);
$cn->exec_sql($Insert);
}
}
else
{
$value = ($p_value == "") ? $default_parameter[$p_type]
: $p_value;
- $Insert = sprintf($Sql, $this->id, $p_type, $value);
+ $Insert = sprintf($Sql, $this->login, $p_type, $value);
$cn->exec_sql($Insert);
}
}
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev