Skip to content

Commit

Permalink
dont try to insert null values in cache extension table
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Nov 6, 2019
1 parent 819dfed commit 2fca816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function update($id, array $data) {
$query->insert('filecache_extended');

$query->setValue('fileid', $query->createNamedParameter($id, IQueryBuilder::PARAM_INT));
foreach ($extensionValues as $column => $value) {
foreach (array_filter($extensionValues) as $column => $value) {
$query->setValue($column, $query->createNamedParameter($value));
}

Expand Down

0 comments on commit 2fca816

Please sign in to comment.