Fix inverted logic in libstoragebox

This commit is contained in:
Starbeamrainbowlabs 2020-03-15 22:04:18 +00:00
parent 5232bb3060
commit b8f37597a6
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ class search
if($capture_offsets)
$flags |= PREG_SPLIT_OFFSET_CAPTURE;
// We don't need to normalise here because the transliterator handles
// We don't need to normalise here because the transliterator handles that
$source = self::$literator->transliterate($source);
$source = preg_replace('/[\[\]\|\{\}\/]/u', " ", $source);
return preg_split("/((^\p{P}+)|(\p{P}*\s+\p{P}*)|(\p{P}+$))|\|/u", $source, -1, $flags);

View File

@ -91,7 +91,7 @@ class StorageBox {
*/
public function get_keys(string $exclude) : \PDOStatement {
return $this->query(
"SELECT key FROM store WHERE key LIKE :containing;",
"SELECT key FROM store WHERE key NOT LIKE :containing;",
[ "containing" => "%$exclude%" ]
);
}