diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-21 17:04:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-21 17:04:31 +0000 |
commit | 534c00f90097eecb64721c2afdeb77e7a1275173 (patch) | |
tree | 13fbf87284580643066904108caf13eafa424a34 | |
parent | b24aff1da287eb14a788dec6778dea50cefee830 (diff) | |
download | brdo-534c00f90097eecb64721c2afdeb77e7a1275173.tar.gz brdo-534c00f90097eecb64721c2afdeb77e7a1275173.tar.bz2 |
- Fixed date problem in calendar module (reported by Remco).
-rw-r--r-- | modules/calendar.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/calendar.class b/modules/calendar.class index 194196962..340b62139 100644 --- a/modules/calendar.class +++ b/modules/calendar.class @@ -5,8 +5,8 @@ $module = array(); class Calendar { var $date; - function calendar($date) { - $this->date = $date; + function calendar($date = 0) { + $this->date = ($date ? $date : time()); } function display() { |