[Tutos-commits] tutos/php timetrack_overview.php,1.138,1.139
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Gero K. <gok...@us...> - 2010-12-17 12:34:55
|
Update of /cvsroot/tutos/tutos/php In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv17281 Modified Files: timetrack_overview.php Log Message: bugfix Index: timetrack_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/timetrack_overview.php,v retrieving revision 1.138 retrieving revision 1.139 diff -u -d -r1.138 -r1.139 --- timetrack_overview.php 30 Nov 2010 07:38:43 -0000 1.138 +++ timetrack_overview.php 17 Dec 2010 12:34:47 -0000 1.139 @@ -392,25 +392,25 @@ $n = $this->result->numrows(); $a = 0; $v = 0; # total volume - while ( $a < $n ) { - $tt = new timetrack($this->dbconn); - $tt->read_result($this->result,$a); - if ( !isset($w[$tt->worker->id]) ) { - $w[$tt->worker->id] = 0; - } - if ( !isset($s[$tt->state]) ) { - $s[$tt->state] = 0; - } - if ( !isset($p[$tt->ref->id]) ) { - $p[$tt->ref->id] = 0; - } - $w[$tt->worker->id] += $tt->volume; - $p[$tt->ref->id] += $tt->volume; - $s[$tt->state] += $tt->volume; - $v += $tt->volume; - $a++; - unset($tt); - } + while ( $a < $n ) { + $tt = new timetrack($this->dbconn); + $tt->read_result($this->result,$a); + if ( !isset($w[$tt->worker->id]) ) { + $w[$tt->worker->id] = 0; + } + if ( !isset($s[$tt->state]) ) { + $s[$tt->state] = 0; + } + if ( !isset($p[$tt->ref->id]) ) { + $p[$tt->ref->id] = 0; + } + $w[$tt->worker->id] += $tt->volume; + $p[$tt->ref->id] += $tt->volume; + $s[$tt->state] += $tt->volume; + $v += $tt->volume; + $a++; + unset($tt); + } // Header $r .= $this->DataTableStart(); @@ -535,7 +535,7 @@ $msg .= "Unknown ". $lang['Timetrack'] ." ". $val ."<br />\n"; continue; } - if ( $p->ref->del_ok() ) { + if ( $p->del_ok() ) { $msg .= sprintf($lang['Delete']) .":". $p->getFullName() ."<br />"; $msg .= $p->delete(); } else { |