diff --git a/admin/schedule.php b/admin/schedule.php
index 6a4348f..7282d40 100644
--- a/admin/schedule.php
+++ b/admin/schedule.php
@@ -263,9 +263,9 @@
echo i18n("Schedule date"); ?>
echo i18n("Start hour")." ";
- emit_hour_selector("starthour",7,"onchange=\"changeDate()\"");
+ emit_hour_selector("starthour",7,"id=\"starthour\" onchange=\"changeDate()\"");
echo i18n("End hour")." ";
- emit_hour_selector("endhour",17,"onchange=\"changeDate()\"");
+ emit_hour_selector("endhour",17,"id=\"endhour\" onchange=\"changeDate()\"");
?>
diff --git a/common.inc.php b/common.inc.php
index 3f59ffa..9f65739 100644
--- a/common.inc.php
+++ b/common.inc.php
@@ -851,10 +851,10 @@ function emit_date_selector($name,$selected="")
echo "";
}
-function emit_hour_selector($name,$selected="",$extra)
+function emit_hour_selector($name,$selected="",$extra="")
{
if($selected!="") $selected=(int)$selected;
- echo "