IPC and peer fixes

This commit is contained in:
Daniil Gentili 2020-10-06 11:55:19 +02:00
parent ba59131926
commit b22a193014
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ final class WebRunner extends RunnerAbstract
}
$rootDir = \dirname($rootDir).DIRECTORY_SEPARATOR;
$uriDir = \dirname($uri);
if ($uriDir !== '/') {
if ($uriDir !== '/' && $uriDir !== '\\') {
$uriDir .= DIRECTORY_SEPARATOR;
}

View File

@ -211,7 +211,7 @@ trait PeerHandler
}
}
private function cacheChatUsername(int $id, array $chat): void
private function cacheChatUsername($id, array $chat): void
{
if ($id && !empty($chat['username'])) {
$this->usernames[\strtolower($chat['username'])] = $id;