diff options
author | Andrew Dolgov <[email protected]> | 2021-02-21 09:35:07 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-21 09:35:07 +0300 |
commit | 94560132ddf45a5a7c68ce520b40ecb10a6f89fe (patch) | |
tree | a973158db213849936eab2805681b7908d6034fa /include | |
parent | b4e96374bcc14b3be353f87a80f83b34615dec73 (diff) |
for the most part, deal with filter rules UI
Diffstat (limited to 'include')
-rwxr-xr-x | include/controls.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/include/controls.php b/include/controls.php index ae5fba739..e3349d31b 100755 --- a/include/controls.php +++ b/include/controls.php @@ -60,21 +60,11 @@ return $rv; } - function select_labels(string $name, string $value, array $attributes = [], string $id = "") { - $pdo = \Db::pdo(); - - $sth = $pdo->prepare("SELECT caption FROM ttrss_labels2 - WHERE owner_uid = ? ORDER BY caption"); - $sth->execute([$_SESSION['uid']]); - - $values = []; - - while ($row = $sth->fetch()) { - array_push($values, $row["caption"]); - } + /*function select_labels(string $name, string $value, array $attributes = [], string $id = "") { + $values = \Labels::get_as_hash($_SESSION["uid"]); return select_tag($name, $value, $values, $attributes, $id); - } + }*/ function select_hash(string $name, $value, array $values, array $attributes = [], string $id = "") { $attributes_str = attributes_to_string($attributes); |