From ff458eb5adf85c8155dca792b3cb84e9b174d0ed Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 21 Aug 2004 20:59:13 +0000 Subject: [PATCH] removed some notices --- mod/chat/lib.php | 1 + mod/choice/lib.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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, -- 2.39.5