X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=plugins%2Fauto_assign_labels%2Finit.php;h=cc70e2dffea23a2ff934079f0c154af57e282966;hb=d8a924d9307926f16d68c4e52862039ef5d34876;hp=911adb6b88d98bfa50b4d33ef22a910f24a66993;hpb=0f4487d3d69d1ebf21a424d75863f3864c305883;p=tt-rss.git diff --git a/plugins/auto_assign_labels/init.php b/plugins/auto_assign_labels/init.php index 911adb6b..cc70e2df 100644 --- a/plugins/auto_assign_labels/init.php +++ b/plugins/auto_assign_labels/init.php @@ -1,6 +1,7 @@ pdo->prepare("SELECT id, fg_color, bg_color, caption FROM ttrss_labels2 WHERE owner_uid = ?"); + $sth->execute([$owner_uid]); - while ($line = db_fetch_assoc($result)) { + while ($line = $sth->fetch()) { array_push($rv, array(Labels::label_to_feed_id($line["id"]), $line["caption"], $line["fg_color"], $line["bg_color"])); }