Skip to content

A free, self-hostable news aggregator…

Fix updateTagAttribute (#2682)

Alexandre Alapetite131ad1014b05
diff --git a/app/Models/TagDAO.php b/app/Models/TagDAO.php
index 5882eee76..09397c6a1 100644
--- a/app/Models/TagDAO.php
+++ b/app/Models/TagDAO.php
@@ -106,9 +106,9 @@ class FreshRSS_TagDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
public function updateTagAttribute($tag, $key, $value) {
if ($tag instanceof FreshRSS_Tag) {
$tag->_attributes($key, $value);
- return $this->updateFeed(
+ return $this->updateTag(
$tag->id(),
- array('attributes' => $feed->attributes())
+ [ 'attributes' => $tag->attributes() ]
);
}
return false;