Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a7f931
)
MDL-25837 detect invalid course parameter when getting fast modinfo
author
Petr Skoda
<commits@skodak.org>
Wed, 12 Jan 2011 20:40:34 +0000
(21:40 +0100)
committer
Petr Skoda
<commits@skodak.org>
Wed, 12 Jan 2011 20:40:34 +0000
(21:40 +0100)
lib/moodlelib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index
30eb421
..
0e0cc3a
100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-3045,6
+3045,10
@@
function &get_fast_modinfo(&$course, $userid=0) {
return $cache[$course->id];
}
+ if (!property_exists($course, 'modinfo')) {
+ debugging('Coding problem - missing course modinfo property in get_fast_modinfo() call');
+ }
+
if (empty($course->modinfo)) {
// no modinfo yet - load it
rebuild_course_cache($course->id);