Ignore:
Timestamp:
02/03/09 17:11:41 (14 years ago)
Author:
ramonb
Message:

job_monarch/libtoga.php,
job_monarch/jobstore.php:

  • more associative array key WARNING fixes
File:
1 edited

Legend:

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

    r577 r578  
    3434                $this->restvars         = array();
    3535
    36                 $this->clustername      = $httpvars["c"] ? $httpvars["c"] : $getvars["c"];
    37                 $this->metricname       = $httpvars["m"] ? $httpvars["m"] : $getvars["m"];
     36                $this->clustername      = $httpvars['c'] ? $httpvars['c'] : $getvars['c'];
     37                $this->metricname       = $httpvars['m'] ? $httpvars['m'] : $getvars['m'];
    3838
    3939                if( count( $httpvars ) > 0 )
     
    12331233                // determine the offset between colors
    12341234                //
    1235                 $step_offset = array("r" => ($background["r"] / $ds_steps), "g" => ($background["g"] / $ds_steps), "b" => ($background["b"] / $ds_steps));
     1235                $step_offset = array("r" => ($background['r'] / $ds_steps), "g" => ($background['g'] / $ds_steps), "b" => ($background['b'] / $ds_steps));
    12361236
    12371237                // calculate and allocate the needed colors
     
    12411241                for ($i = 0; $i <= $ds_steps ; $i++)
    12421242                {
    1243                         $colors[$i] = imagecolorallocate($this->image, round($current_color["r"]), round($current_color["g"]), round($current_color["b"]));
    1244 
    1245                         $current_color["r"] -= $step_offset["r"];
    1246                         $current_color["g"] -= $step_offset["g"];
    1247                         $current_color["b"] -= $step_offset["b"];
     1243                        $colors[$i] = imagecolorallocate($this->image, round($current_color['r']), round($current_color['g']), round($current_color['b']));
     1244
     1245                        $current_color['r'] -= $step_offset['r'];
     1246                        $current_color['g'] -= $step_offset['g'];
     1247                        $current_color['b'] -= $step_offset['b'];
    12481248                }
    12491249
Note: See TracChangeset for help on using the changeset viewer.