Replace use of 'array_merge' with the spread operator and 'array_push' in various places.
This isn't supported for arrays with string keys until PHP 8.1. https://wiki.php.net/rfc/spread_operator_for_array
This commit is contained in:
@@ -286,7 +286,7 @@ class API extends Handler {
|
||||
$sth = $this->pdo->prepare("UPDATE ttrss_user_entries SET
|
||||
$field = $set_to $additional_fields
|
||||
WHERE ref_id IN ($article_qmarks) AND owner_uid = ?");
|
||||
$sth->execute(array_merge($article_ids, [$_SESSION['uid']]));
|
||||
$sth->execute([...$article_ids, $_SESSION['uid']]);
|
||||
|
||||
$num_updated = $sth->rowCount();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user