diff --git a/Controller/BackendController.php b/Controller/BackendController.php index b689da3..90da3ec 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -120,7 +120,7 @@ final class BackendController extends Controller $view->addData('accGrpSelector', $accGrpSelector); $media = MediaMapper::getFor((int) $profile->account->getId(), 'createdBy'); - $view->setData('media', $media instanceof NullMedia ? [] : $media); + $view->setData('media', $media instanceof NullMedia ? [] : (!\is_array($media) ? [$media] : $media)); return $view; } diff --git a/Theme/Backend/profile-list.tpl.php b/Theme/Backend/profile-list.tpl.php index f9dc6ce..cde9c51 100755 --- a/Theme/Backend/profile-list.tpl.php +++ b/Theme/Backend/profile-list.tpl.php @@ -37,7 +37,7 @@ $next = empty($accounts) ? '{/prefix}profile/list' : '{/prefix}profile/list?
$account) : ++$count; $url = UriFactory::build('{/prefix}profile/single?{?}&id=' . $account->getId()); ?> -