mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
composer format
This commit is contained in:
parent
962e80c40c
commit
fbdc6ba029
@ -1951,8 +1951,8 @@ function db_update(string $table, string $where_col, string $where_value, array
|
|||||||
|
|
||||||
$set = array();
|
$set = array();
|
||||||
|
|
||||||
foreach($timestamp as $k) {
|
foreach ($timestamp as $k) {
|
||||||
if(!isset($values[$k])) {
|
if (!isset($values[$k])) {
|
||||||
$values[$k] = 'x'; // timestamp field not in the values list, add it in so we set it to now() see #469
|
$values[$k] = 'x'; // timestamp field not in the values list, add it in so we set it to now() see #469
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1969,7 +1969,6 @@ function db_update(string $table, string $where_col, string $where_value, array
|
|||||||
|
|
||||||
$set[] = " $key = :$key ";
|
$set[] = " $key = :$key ";
|
||||||
$pvalues[$key] = $value;
|
$pvalues[$key] = $value;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$pvalues['where'] = $where_value;
|
$pvalues['where'] = $where_value;
|
||||||
|
Loading…
Reference in New Issue
Block a user