From 97dfef32677b1443eae07b19bee294eae5e9ef08 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 21 Apr 2022 23:30:19 -0400 Subject: [PATCH] Fix typos --- lib/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Database.php b/lib/Database.php index 7c60a9f8..6f02d0af 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -1641,10 +1641,10 @@ class Database { } // handle labels and tags $options = [ - 'label' => ["labelled", "article", "label_id", "=", "int"], - 'labels' => ["labelled", "article", "label_id", "in", "int"], - 'labelName' => ["labelled", "article", "label_name", "=", "str"], - 'labelNames' => ["labelled", "article", "label_name", "in", "str"], + 'label' => ["labelled", "id", "label_id", "=", "int"], + 'labels' => ["labelled", "id", "label_id", "in", "int"], + 'labelName' => ["labelled", "id", "label_name", "=", "str"], + 'labelNames' => ["labelled", "id", "label_name", "in", "str"], 'tag' => ["tagged", "subscription", "tag_id", "=", "int"], 'tags' => ["tagged", "subscription", "tag_id", "in", "int"], 'tagName' => ["tagged", "subscription", "tag_name", "=", "str"], @@ -1659,7 +1659,7 @@ class Database { [$inClause, $inTypes, $inValues] = $this->generateIn($context->$m, $type); $q->setWhere("{$colDefs[$col]} in (select $selection from $cte where $col in($inClause))", $inTypes, $inValues); } else { - $q->setWhere("{$colDefs[$col]} in (select $selection from $cte where $col = ?)", $type, $$context->$m); + $q->setWhere("{$colDefs[$col]} in (select $selection from $cte where $col = ?)", $type, $context->$m); } } // handle the exclusionary version @@ -1671,7 +1671,7 @@ class Database { [$inClause, $inTypes, $inValues] = $this->generateIn($context->not->$m, $type); $q->setWhereNot("{$colDefs[$col]} in (select $selection from $cte where $col in($inClause))", $inTypes, $inValues); } else { - $q->setWhereNot("{$colDefs[$col]} in (select $selection from $cte where $col = ?)", $type, $$context->not->$m); + $q->setWhereNot("{$colDefs[$col]} in (select $selection from $cte where $col = ?)", $type, $context->not->$m); } } }