MDL-32251 more E_STRCT fixes
This commit is contained in:
+1
-1
@@ -636,7 +636,7 @@ class comment {
|
||||
* }
|
||||
* @return boolean
|
||||
*/
|
||||
public function delete_comments($param) {
|
||||
public static function delete_comments($param) {
|
||||
global $DB;
|
||||
$param = (array)$param;
|
||||
if (empty($param['contextid'])) {
|
||||
|
||||
@@ -428,7 +428,7 @@ class question_category_object {
|
||||
}
|
||||
|
||||
// Update the category record.
|
||||
$cat = null;
|
||||
$cat = new stdClass();
|
||||
$cat->id = $updateid;
|
||||
$cat->name = $newname;
|
||||
$cat->info = $newinfo;
|
||||
|
||||
Reference in New Issue
Block a user