fixing messed up property_exists() regression - sorrrry
This commit is contained in:
@@ -86,7 +86,7 @@ abstract class data_object {
|
||||
public function load_optional_fields() {
|
||||
global $DB;
|
||||
foreach ($this->optional_fields as $field=>$default) {
|
||||
if (property_exists($field, $this)) {
|
||||
if (property_exists($this, $field)) {
|
||||
continue;
|
||||
}
|
||||
if (empty($this->id)) {
|
||||
|
||||
Reference in New Issue
Block a user