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")) ...@@ -354,7 +354,7 @@ if (($action=="create") || ($action=="edit"))
print $langs->trans('CronEvery')."</td>"; print $langs->trans('CronEvery')."</td>";
print "<td><select name=\"nbfrequency\">"; print "<td><select name=\"nbfrequency\">";
for($i=1; $i<=60; $i++){ 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>"; print "<option value='".$i."' selected='selected'>".$i."</option>";
} }
else{ else{
......
...@@ -258,6 +258,7 @@ days=days ...@@ -258,6 +258,7 @@ days=days
Hours=Hours Hours=Hours
Minutes=Minutes Minutes=Minutes
Seconds=Seconds Seconds=Seconds
Weeks=Weeks
Today=Today Today=Today
Yesterday=Yesterday Yesterday=Yesterday
Tomorrow=Tomorrow Tomorrow=Tomorrow
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment