runtime error
Posted: Thu Feb 23, 2006 5:02 pm
if during monitor setup, area was not set (0), next time you get back to this screen and set needed values, it gives an error of invalid division by zero in module zm_actions.php, linesm 1156 & 1157
$points[$i]['x'] = intval(round((($points[$i]['x']*$new_w)/$old_w)));
$points[$i]['y'] = intval(round((($points[$i]['y']*$new_h)/$old_h)));
it may be advisable to check for 0 before performing the division
$points[$i]['x'] = intval(round((($points[$i]['x']*$new_w)/$old_w)));
$points[$i]['y'] = intval(round((($points[$i]['y']*$new_h)/$old_h)));
it may be advisable to check for 0 before performing the division