mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Fix reference to private static variable.
This commit is contained in:
parent
16fdb2b5f5
commit
26ce3a83f4
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user