1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Fix typos

This commit is contained in:
J. King 2022-04-21 23:30:19 -04:00
parent 396ca86482
commit 97dfef3267

View file

@ -1641,10 +1641,10 @@ class Database {
} }
// handle labels and tags // handle labels and tags
$options = [ $options = [
'label' => ["labelled", "article", "label_id", "=", "int"], 'label' => ["labelled", "id", "label_id", "=", "int"],
'labels' => ["labelled", "article", "label_id", "in", "int"], 'labels' => ["labelled", "id", "label_id", "in", "int"],
'labelName' => ["labelled", "article", "label_name", "=", "str"], 'labelName' => ["labelled", "id", "label_name", "=", "str"],
'labelNames' => ["labelled", "article", "label_name", "in", "str"], 'labelNames' => ["labelled", "id", "label_name", "in", "str"],
'tag' => ["tagged", "subscription", "tag_id", "=", "int"], 'tag' => ["tagged", "subscription", "tag_id", "=", "int"],
'tags' => ["tagged", "subscription", "tag_id", "in", "int"], 'tags' => ["tagged", "subscription", "tag_id", "in", "int"],
'tagName' => ["tagged", "subscription", "tag_name", "=", "str"], 'tagName' => ["tagged", "subscription", "tag_name", "=", "str"],
@ -1659,7 +1659,7 @@ class Database {
[$inClause, $inTypes, $inValues] = $this->generateIn($context->$m, $type); [$inClause, $inTypes, $inValues] = $this->generateIn($context->$m, $type);
$q->setWhere("{$colDefs[$col]} in (select $selection from $cte where $col in($inClause))", $inTypes, $inValues); $q->setWhere("{$colDefs[$col]} in (select $selection from $cte where $col in($inClause))", $inTypes, $inValues);
} else { } 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 // handle the exclusionary version
@ -1671,7 +1671,7 @@ class Database {
[$inClause, $inTypes, $inValues] = $this->generateIn($context->not->$m, $type); [$inClause, $inTypes, $inValues] = $this->generateIn($context->not->$m, $type);
$q->setWhereNot("{$colDefs[$col]} in (select $selection from $cte where $col in($inClause))", $inTypes, $inValues); $q->setWhereNot("{$colDefs[$col]} in (select $selection from $cte where $col in($inClause))", $inTypes, $inValues);
} else { } 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);
} }
} }
} }