From: gustav_delius Date: Sat, 21 Aug 2004 20:59:13 +0000 (+0000) Subject: removed some notices X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ff458eb5adf85c8155dca792b3cb84e9b174d0ed;p=moodle.git removed some notices --- diff --git a/mod/chat/lib.php b/mod/chat/lib.php index a32e9b4e60..5f5e70f21e 100644 --- a/mod/chat/lib.php +++ b/mod/chat/lib.php @@ -29,6 +29,7 @@ if (!isset($CFG->chat_servermax)) { define("CHAT_DRAWBOARD", false); // Look into this later +global $THEME; // The HTML head for the message window to start with ( is used to get some browsers starting with output $CHAT_HTMLHEAD = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; diff --git a/mod/choice/lib.php b/mod/choice/lib.php index e867d5512f..73c8e21f93 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -52,7 +52,7 @@ function choice_add_instance($choice) { $choice->timemodified = time(); - if ($choice->timerestrict) { + if (!empty($choice->timerestrict) and $choice->timerestrict) { $choice->timeopen = make_timestamp($choice->openyear, $choice->openmonth, $choice->openday, $choice->openhour, $choice->openminute, 0); $choice->timeclose = make_timestamp($choice->closeyear, $choice->closemonth, $choice->closeday, @@ -75,7 +75,7 @@ function choice_update_instance($choice) { $choice->timemodified = time(); - if ($choice->timerestrict) { + if (!empty($choice->timerestrict) and $choice->timerestrict) { $choice->timeopen = make_timestamp($choice->openyear, $choice->openmonth, $choice->openday, $choice->openhour, $choice->openminute, 0); $choice->timeclose = make_timestamp($choice->closeyear, $choice->closemonth, $choice->closeday,