URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14214>
Summary: Database object bug in setup/lang.php
Project: phpGroupWare
Submitted by: None
Submitted on: Do 18.08.2005 um 10:45
Item Group: 0.9.16.005
Category: API - Setup
Severity: 3 - Normal
Priority: 7 - High
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Component Version: CVS
Platform Version: None
Reproducibility: Every Time
Planned Release: None
Fixed Release:
_______________________________________________________
Details:
$db2 = $GLOBALS['phpgw_setup']->db;
[..]
while ($GLOBALS['phpgw_setup']->db->next_record())
{
[...] if(strtoupper($GLOBALS['phpgw_setup']->db->f('available')) !=
'YES')
{
$db2->query("UPDATE phpgw_languages SET available = 'Yes' "
[...]
Because
$GLOBALS['phpgw_setup']->db and $db2 are equal here,
the Update statement will break the result set of the select over which the
while loop iterates.
Result: Only the first language will be displayed in the setups language
dialog.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14214>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Phpgroupware-tracker mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-tracker