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:
afbb53d
)
MDL-27840 course: prevent warnings on half-uninstall mod
author
Dan Poltawski
<dan@moodle.com>
Wed, 30 Dec 2015 14:12:54 +0000
(14:12 +0000)
committer
Dan Poltawski
<dan@moodle.com>
Wed, 30 Dec 2015 14:12:54 +0000
(14:12 +0000)
lib/modinfolib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/modinfolib.php
b/lib/modinfolib.php
index
03a9dd1
..
ff0a4f7
100644
(file)
--- a/
lib/modinfolib.php
+++ b/
lib/modinfolib.php
@@
-492,7
+492,7
@@
class course_modinfo {
// Loop through each piece of module data, constructing it
static $modexists = array();
foreach ($coursemodinfo->modinfo as $mod) {
- if (strval($mod->name) === '') {
+ if (
!isset($mod->name) ||
strval($mod->name) === '') {
// something is wrong here
continue;
}