summaryrefslogtreecommitdiff
path: root/classes/article.php
diff options
context:
space:
mode:
authorfox <[email protected]>2022-08-17 19:38:15 +0300
committerfox <[email protected]>2022-08-17 19:38:15 +0300
commit60658be5bc35192f9b2d9aaf413454f29fe51316 (patch)
treed7f6aa1b6bf3eaa4d7a9601e46e15441bc737d9e /classes/article.php
parentec764f97e7e3e0fac20f93364c84dfa01651bf95 (diff)
parent0dbed700efa77355839a4d2cddf02f93203dc96f (diff)
Merge pull request 'Use PHP 7.4 features' (#77) from wn/tt-rss:feature/php-7.4-stuff into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/77
Diffstat (limited to 'classes/article.php')
-rwxr-xr-xclasses/article.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/article.php b/classes/article.php
index e113ed219..17a40ca4f 100755
--- a/classes/article.php
+++ b/classes/article.php
@@ -177,7 +177,7 @@ class Article extends Handler_Protected {
$sth = $this->pdo->prepare("UPDATE ttrss_user_entries SET
score = ? WHERE ref_id IN ($ids_qmarks) AND owner_uid = ?");
- $sth->execute(array_merge([$score], $ids, [$_SESSION['uid']]));
+ $sth->execute([$score, ...$ids, $_SESSION['uid']]);
print json_encode(["id" => $ids, "score" => $score]);
}
@@ -507,7 +507,7 @@ class Article extends Handler_Protected {
WHERE ref_id IN ($ids_qmarks) AND owner_uid = ?");
}
- $sth->execute(array_merge($ids, [$owner_uid]));
+ $sth->execute([...$ids, $owner_uid]);
}
/**