|
From: | anonymous |
Subject: | [Phpgroupware-tracker] [bug #14214] Database object bug in setup/lang.php |
Date: | Thu, 18 Aug 2005 10:45:33 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 |
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/
[Prev in Thread] | Current Thread | [Next in Thread] |