Fix updateTagAttribute (#2682)

pull/2683/head
Alexandre Alapetite 5 years ago committed by GitHub
parent b0ef856361
commit 131ad1014b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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;

Loading…
Cancel
Save