diff --git a/application/libraries/b8/storage/pgsql.php b/application/libraries/b8/storage/pgsql.php index d6c4e9b40..75f372199 100644 --- a/application/libraries/b8/storage/pgsql.php +++ b/application/libraries/b8/storage/pgsql.php @@ -55,7 +55,7 @@ protected function fetch_token_data(array $tokens) $escaped = []; foreach ($tokens as $token) { - $escaped[] = pg_escape_string($token); + $escaped[] = pg_escape_string($this->pgsql, $token); } $result = pg_query($this->pgsql, 'SELECT token, count_ham, count_spam' . ' FROM ' . $this->table