diff options
author | Friendika <info@friendika.com> | 2011-06-06 21:49:07 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-06 21:49:07 -0700 |
commit | fcb4316c2943d881eeb4d77bb6e3e51815bb59d6 (patch) | |
tree | 4eac0c324a6c6cd320563189e1d67fd7fa03c963 /include | |
parent | bbc65f98328cd0a4732af5a52bec586a868255ba (diff) | |
download | volse-hubzilla-fcb4316c2943d881eeb4d77bb6e3e51815bb59d6.tar.gz volse-hubzilla-fcb4316c2943d881eeb4d77bb6e3e51815bb59d6.tar.bz2 volse-hubzilla-fcb4316c2943d881eeb4d77bb6e3e51815bb59d6.zip |
tinymce for event fields
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/datetime.php b/include/datetime.php index 8f2ec311a..a5b388e76 100644 --- a/include/datetime.php +++ b/include/datetime.php @@ -122,14 +122,14 @@ function datesel($pre,$ymin,$ymax,$allow_blank,$y,$m,$d) { } $o .= "</select> <select name=\"{$pre}month\" class=\"{$pre}month\" size=\"1\">"; - for($x = 0; $x <= 12; $x ++) { + for($x = (($allow_blank) ? 0 : 1); $x <= 12; $x ++) { $sel = (($x == $m) ? " selected=\"selected\" " : ""); $y = (($x) ? $x : ''); $o .= "<option value=\"$x\" $sel>$y</option>"; } $o .= "</select> <select name=\"{$pre}day\" class=\"{$pre}day\" size=\"1\">"; - for($x = 0; $x <= 31; $x ++) { + for($x = (($allow_blank) ? 0 : 1); $x <= 31; $x ++) { $sel = (($x == $d) ? " selected=\"selected\" " : ""); $y = (($x) ? $x : ''); $o .= "<option value=\"$x\" $sel>$y</option>"; |