bugphpGroupWare - Bugs: bug #14214, Database object bug in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #14214: Database object bug in setup/lang.php

Submitted by:  None
Submitted on:  Thu 18 Aug 2005 10:45:32 AM UTC  
 
Item Group: 0.9.16.005Category: API - Setup
Severity: 3 - NormalPriority: 7 - High
Status: InvalidPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: SVNOperating System: None
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Thu 18 Aug 2005 11:25:54 AM UTC, comment #1:

Wrong!

Login so we know who is filing invalid bug reports or expect all of your reports to be closed without further investigation.

Dave Hall <skwashd>
Project Administrator
Thu 18 Aug 2005 10:45:32 AM UTC, original submission:

$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.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 18 Aug 2005 11:25:54 AM UTCskwashdStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1