Fix reference to private static variable.

This commit is contained in:
Andrew McMillan 2011-09-12 18:58:28 +12:00
parent 16fdb2b5f5
commit 26ce3a83f4

View File

@ -518,10 +518,10 @@ class Principal {
throw new Exception( get_class($this).'::Create: Mandatory field "'.$k.'" is not set.');
}
}
$sql = 'INSERT INTO '.$this->db_tablename.' ('.implode(',',$insert_fields).') VALUES('.implode(',',$param_names).')';
$sql = 'INSERT INTO '.self::$db_tablename.' ('.implode(',',$insert_fields).') VALUES('.implode(',',$param_names).')';
}
else {
$sql = 'UPDATE '.$this->db_tablename.' SET '.implode(',',$update_list);
$sql = 'UPDATE '.self::$db_tablename.' SET '.implode(',',$update_list);
$sql .= ' WHERE principal_id=:principal_id';
$sql_params[':principal_id'] = $this->principal_id;
}