Search found 1 match

Page 1 of 1

Search found 1 match

Re: weight.php - devision by zero error (with fix)

I finally resolved this problem: public function convert($value, $from, $to) { if ($from == $to) { return $value; } if (isset($this->weights[$from])) { $from = $this->weights[$from]['value']; } else { $from = 0; } if (isset($this->weights[$to])) { $to = $this->weights[$to]['value']; } else { $to = 0...

Jump to post
  • Thu May 23, 2013 7:22 pm
  • Replies 14
  • Views 15336

Page 1 of 1

Search found 1 match