Skip to content
Snippets Groups Projects
Commit 767afd3c authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2231 from KreizIT/fix_cron

Fix cron
parents 6f00cecd d2cd8415
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{
......
......@@ -258,6 +258,7 @@ days=days
Hours=Hours
Minutes=Minutes
Seconds=Seconds
Weeks=Weeks
Today=Today
Yesterday=Yesterday
Tomorrow=Tomorrow
......
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