Bug fix + dependency update

This commit is contained in:
2020-06-24 21:18:26 +02:00
parent 6162eff694
commit 36cee43c74
5 changed files with 11 additions and 16 deletions

View File

@@ -245,7 +245,7 @@ class User extends ApiObject {
}
public function processVisit() {
if ($this->sql && isset($_COOKIE["PHPSESSID"]) && !empty($_COOKIE["PHPSESSID"])) {
if ($this->sql && $this->sql->isConnected() && isset($_COOKIE["PHPSESSID"]) && !empty($_COOKIE["PHPSESSID"])) {
if ($this->isBot()) {
return;