diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 61501bdac8..bfc84e5259 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -378,6 +378,8 @@ class Photo extends BaseObject if (!DBA::isResult($r)) { $logger->info("Can't detect user data.", ['uid' => $uid]); return([]); + } else { + $r = DBA::toArray($r); } $page_owner_nick = $r[0]['nickname'];