We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8fa816c3 authored by Evan Prodromou's avatar Evan Prodromou

don't use potentially bad Profile values

parent f65fa42e
......@@ -1420,14 +1420,18 @@ class Profile extends Managed_DataObject
{
$ids = array();
foreach ($profiles as $profile) {
$ids[] = $profile->id;
if (!empty($profile)) {
$ids[] = $profile->id;
}
}
$avatars = Avatar::pivotGet('profile_id', $ids, array('width' => $width,
'height' => $width));
foreach ($profiles as $profile) {
$profile->_fillAvatar($width, $avatars[$profile->id]);
if (!empty($profile)) { // ???
$profile->_fillAvatar($width, $avatars[$profile->id]);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment