summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-01-02 09:30:55 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-01-02 23:49:00 -0100
commit43fc850c18398bded7884c804b94daab80dabca8 (patch)
treec793f4cabb2f3963681a6a37c8d5df49ddebeb50
parent88a19839c8a8defab6eac58d3aab8da026244d65 (diff)
limit update to id
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--lib/Db/CacheActorsRequest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php
index 58ac8c7a..bca8b39d 100644
--- a/lib/Db/CacheActorsRequest.php
+++ b/lib/Db/CacheActorsRequest.php
@@ -134,9 +134,10 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
} else {
$iconId = $actor->getIconId();
}
-
$qb->set('icon_id', $qb->createNamedParameter($iconId));
+ $this->limitToIdString($qb, $actor->getId());
+
$qb->execute();
}