Commit 534c00f9 authored by Dries's avatar Dries

- Fixed date problem in calendar module (reported by Remco).

parent b24aff1d
......@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment