Changeset 654 for branches


Ignore:
Timestamp:
02/04/10 14:12:13 (14 years ago)
Author:
ramonb
Message:
  • more PHP4 fixes
Location:
branches/0.3/web/addons/job_monarch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.3/web/addons/job_monarch/libtoga.php

    r653 r654  
    19111911
    19121912                                        $cur_node = ($n * $nodes_per_row) + ($m);
    1913                                         $host = $nodes_hosts[$cur_node];
     1913                                        $host = isset( $nodes_hosts[$cur_node] ) ? $nodes_hosts[$cur_node] : '';
    19141914
    19151915                                        if( isset( $nodes[$host] ) )
  • branches/0.3/web/addons/job_monarch/overview.php

    r653 r654  
    293293                foreach( $node_jobs as $myjob )
    294294                {
    295                         $job_cpu                = (int) $jobs[$myjob]['ppn'] ? $jobs[$myjob]['ppn'] : 1;
     295                        $job_cpu                = isset( $jobs[$myjob]['ppn'] ) ? $jobs[$myjob]['ppn'] : 1;
    296296
    297297                        // Determine the weight of this job
Note: See TracChangeset for help on using the changeset viewer.