Images::getInfoFromURL[Cached]() will both return empty arrays on error and that needs to be reflected here, too.

This commit is contained in:
Roland Häder 2022-06-22 17:19:26 +02:00
parent 4e825fe621
commit b1b26062fc
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 2 additions and 2 deletions

View file

@ -1050,7 +1050,7 @@ function statusnet_createpost(App $a, $uid, $post, $self, $create_user, $only_ex
$own_url = DI::pConfig()->get($uid, 'statusnet', 'own_url');
if ($content->user->id == $own_url) {
$self = DBA::selectFirst([], ['self' => true, 'uid' => $uid]);
$self = DBA::selectFirst('', ['self' => true, 'uid' => $uid]);
if (DBA::isResult($self)) {
$contactid = $self["id"];