6 Commits

Author SHA1 Message Date
stronk7
92fac4b251 Now 0 rates are supported in glossary. Bug 2582
(http://moodle.org/bugs/bug.php?op=show&bugid=2582)
2005-02-18 01:00:42 +00:00
stronk7
4f746d2aea ARGGG. I spent 1 hour discovering where was the error!!
Under PHP5 we must cast objects to arrays to use them in loops.
But what is really annoying is that, instead of return an error, PHP
returns the 1st element! This should close bug 2581.
(http://moodle.org/bugs/bug.php?op=show&bugid=2581)
2005-02-18 00:19:08 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
stronk7
4528ab53dd Added missing Id: cvs tag. Bug 1394
http://moodle.org/bugs/bug.php?op=show&bugid=1394
2004-05-14 19:36:39 +00:00
willcast
63dd5fb281 - Grading enabled.... finally. 2003-11-21 18:42:38 +00:00