diff options
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php index 771a4880c..298c5c5de 100644 --- a/lib/util.php +++ b/lib/util.php @@ -403,13 +403,13 @@ function common_at_link($sender_id, $nickname) { // where should the avatar go for this user? -function common_avatar_filename($user, $extension, $size=NULL, $extra=NULL) { +function common_avatar_filename($id, $extension, $size=NULL, $extra=NULL) { global $config; if ($size) { - return $user->id . '-' . $size . (($extra) ? ('-' . $extra) : '') . $extension; + return $id . '-' . $size . (($extra) ? ('-' . $extra) : '') . $extension; } else { - return $user->id . '-original' . (($extra) ? ('-' . $extra) : '') . $extension; + return $id . '-original' . (($extra) ? ('-' . $extra) : '') . $extension; } } |