[svn r17104] FS#3324 - Agenda tool: Hour selection has to be (0-23), not (1-24). This fix has been proposed in a forum by TL (http://www.dokeos.com/forum/viewtopic.php?p=45391).

skala
Ivan Tcholakov 16 years ago
parent 7542445ac9
commit 75bdd1eaf6
  1. 6
      main/calendar/agenda.inc.php

@ -1,4 +1,4 @@
<?php //$Id: agenda.inc.php 17061 2008-12-03 21:43:06Z cfasanando $ <?php //$Id: agenda.inc.php 17104 2008-12-08 04:53:39Z ivantcholakov $
/* /*
============================================================================== ==============================================================================
@ -2252,7 +2252,7 @@ function show_add_form($id = '')
<option value="--">--</option> <option value="--">--</option>
<?php <?php
echo "\n"; echo "\n";
foreach (range(1, 24) as $i) foreach (range(0, 23) as $i)
{ {
// values have to have double digits // values have to have double digits
$value = ($i <= 9 ? '0'.$i : $i ); $value = ($i <= 9 ? '0'.$i : $i );
@ -2358,7 +2358,7 @@ function show_add_form($id = '')
<option value="--">--</option> <option value="--">--</option>
<?php <?php
echo "\n"; echo "\n";
foreach (range(1, 24) as $i) foreach (range(0, 23) as $i)
{ {
// values have to have double digits // values have to have double digits
$value = ($i <= 9 ? '0'.$i : $i ); $value = ($i <= 9 ? '0'.$i : $i );

Loading…
Cancel
Save