summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-21 10:35:39 +0300
committerAndrew Dolgov <[email protected]>2021-02-21 10:35:39 +0300
commitfb471652c00abec604e07c2383685c0e352c897e (patch)
treedfa709287b28318173c8c327ee358a1f28667e1d /include
parent9e56896bd428114ff9bfd979c2d4ff8d93f99485 (diff)
parent3b8d69206ccc24b41b45acd55f0c63681e749fd1 (diff)
Merge branch 'wip-filter-stuff'
Diffstat (limited to 'include')
-rwxr-xr-xinclude/controls.php16
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);