Changeset 262


Ignore:
Timestamp:
06/23/06 16:46:49 (18 years ago)
Author:
bastiaans
Message:

web/addons/job_monarch/libtoga.php:

  • changed loop to be more consistent
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/libtoga.php

    r253 r262  
    533533        function startElement( $parser, $name, $attrs ) {
    534534
    535                 $jobs = &$this->jobs;
    536                 $nodes = &$this->nodes;
     535                $jobs = $this->jobs;
     536                $nodes = $this->nodes;
    537537
    538538                if ( $attrs[TN] ) {
     
    602602                                                        $mynodes = explode( ';', $togavalue );
    603603
    604                                                         foreach( $mynodes as $node )
    605 
    606                                                                 if( !in_array( $node, $jobs[$jobid][$toganame] ) )
     604                                                        foreach( $mynodes as $node ) {
     605
     606                                                                if( !in_array( $node, $jobs[$jobid][$toganame] ) ) {
    607607                                                                        $jobs[$jobid][$toganame][] = $node;
     608                                                                }
     609                                                        }
    608610
    609611                                                } else if( $jobs[$jobid][status] == 'Q' ) {
Note: See TracChangeset for help on using the changeset viewer.