Make the tests happy
This commit is contained in:
@@ -383,11 +383,11 @@ class APContact
|
||||
if (strlen($apcontact['photo']) > 255) {
|
||||
$parts = parse_url($apcontact['photo']);
|
||||
unset($parts['fragment']);
|
||||
$apcontact['photo'] = Uri::fromParts($parts);
|
||||
$apcontact['photo'] = (string)Uri::fromParts($parts);
|
||||
|
||||
if (strlen($apcontact['photo']) > 255) {
|
||||
unset($parts['query']);
|
||||
$apcontact['photo'] = Uri::fromParts($parts);
|
||||
$apcontact['photo'] = (string)Uri::fromParts($parts);
|
||||
}
|
||||
|
||||
if (strlen($apcontact['photo']) > 255) {
|
||||
|
||||
@@ -2948,7 +2948,7 @@ class Item
|
||||
if (!empty($urlparts)) {
|
||||
unset($urlparts['query']);
|
||||
unset($urlparts['fragment']);
|
||||
$url = Uri::fromParts($urlparts);
|
||||
$url = (string)Uri::fromParts($urlparts);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user