fixing messed up property_exists() regression - sorrrry

This commit is contained in:
Petr Skoda
2010-09-17 20:36:49 +00:00
parent b6265b7e37
commit 4cc977a64d
10 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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)) {