MDL-46350 blog: call parent validation
authorDan Poltawski <dan@moodle.com>
Fri, 30 Oct 2015 16:26:37 +0000 (16:26 +0000)
committerDan Poltawski <dan@moodle.com>
Thu, 26 Nov 2015 14:08:42 +0000 (14:08 +0000)
(Helps satify codechecker, thats all..)

blog/edit_form.php

index 805bf79..773f153 100644 (file)
@@ -151,7 +151,7 @@ class blog_edit_form extends moodleform {
     public function validation($data, $files) {
         global $CFG, $DB, $USER;
 
-        $errors = array();
+        $errors = parent::validation($data, $files);
 
         // Validate course association.
         if (!empty($data['courseassoc'])) {