Procházet zdrojové kódy

Fix updateTagAttribute (#2682)

Alexandre Alapetite před 6 roky
rodič
revize
131ad1014b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      app/Models/TagDAO.php

+ 2 - 2
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;