Skip to content
Snippets Groups Projects
Commit d2cd8415 authored by Cédric Gross's avatar Cédric Gross
Browse files

Fix divide by zero error

parent 26cad240
No related branches found
No related tags found
No related merge requests found
......@@ -354,7 +354,7 @@ if (($action=="create") || ($action=="edit"))
print $langs->trans('CronEvery')."</td>";
print "<td><select name=\"nbfrequency\">";
for($i=1; $i<=60; $i++){
if(($object->frequency/$object->unitfrequency) == $i){
if(!is_null($object->unitfrequency) && ($object->frequency/$object->unitfrequency) == $i){
print "<option value='".$i."' selected='selected'>".$i."</option>";
}
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment