fixed phpdocs and marked methods as static

This commit is contained in:
Petr Skoda
2010-09-18 10:43:50 +00:00
parent d306751695
commit 22a9b6d873
4 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ abstract class grade_object {
public function load_optional_fields() {
global $DB;
foreach ($this->optional_fields as $field=>$default) {
if (array_key_exists($field, $this)) {
if (property_exists($this, $field)) {
continue;
}
if (empty($this->id)) {