Fix documentation in include/dba

This commit is contained in:
Hypolite Petovan 2018-01-09 22:20:58 -05:00
parent da60893590
commit c7a7658316
4 changed files with 17 additions and 17 deletions

View file

@ -29,8 +29,9 @@ function xrd_init(App $a)
$name = ltrim(basename($uri), '~');
} else {
$local = str_replace('acct:', '', $uri);
if (substr($local, 0, 2) == '//')
if (substr($local, 0, 2) == '//') {
$local = substr($local, 2);
}
$name = substr($local, 0, strpos($local, '@'));
}