MDL-11074 - incorrect test in page_generic_activity, thanks to Gordon Bateson

This commit is contained in:
poltawski
2008-01-11 15:42:05 +00:00
parent ca9b92d39f
commit 5a3cafc899
+1 -1
View File
@@ -602,7 +602,7 @@ class page_generic_activity extends page_base {
error('Cannot fully initialize page: invalid course id '. $this->modulerecord->course);
}
$this->activityrecord = get_record($this->activityname, 'id', $this->id);
if(empty($this->courserecord)) {
if(empty($this->activityrecord)) {
error('Cannot fully initialize page: invalid '.$this->activityname.' id '. $this->id);
}
$this->full_init_done = true;