Search found 1 match

Page 1 of 1

Search found 1 match

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

There is bug in file system/library/weight.php
String 38

Code: Select all

return $value * ($to / $from);
cause division by zero if

Code: Select all

weights[$from]
wasn't set befor.

Fix is easy: just add after string 29

Code: Select all

return 0;

Jump to post
  • Wed Jul 11, 2012 10:52 am
  • Replies 14
  • Views 15334

Page 1 of 1

Search found 1 match