mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 02:14:45 +01:00
fixed not working direct sql-updates (eg. 'etag=etag+1') via so_sql::save's parameter
This commit is contained in:
parent
cb5e205d66
commit
f21e357253
@ -422,6 +422,14 @@ class so_sql
|
|||||||
}
|
}
|
||||||
$data[$db_col] = (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];
|
$data[$db_col] = (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];
|
||||||
}
|
}
|
||||||
|
// allow to add direct sql updates, eg. "etag=etag+1" with int keys
|
||||||
|
if (is_array($keys) && isset($keys[0]))
|
||||||
|
{
|
||||||
|
for($n=0; isset($keys[$n]); ++$n)
|
||||||
|
{
|
||||||
|
$data[] = $keys[$n];
|
||||||
|
}
|
||||||
|
}
|
||||||
$keys = '';
|
$keys = '';
|
||||||
foreach($this->db_key_cols as $db_col => $col)
|
foreach($this->db_key_cols as $db_col => $col)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user