修正新建项目页面默认LOGO显示问题
This commit is contained in:
parent
05023c8451
commit
be4dc216a9
|
@ -34,7 +34,7 @@ module AvatarHelper
|
||||||
if source.nil?
|
if source.nil?
|
||||||
return File.join(relative_path,'AnonymousUser','0')
|
return File.join(relative_path,'AnonymousUser','0')
|
||||||
end
|
end
|
||||||
if File.exist?(disk_filename(source.class,source.id))
|
if source.class && source.id && File.exist?(disk_filename(source.class,source.id))
|
||||||
avatar_image(source)
|
avatar_image(source)
|
||||||
else
|
else
|
||||||
File.join(relative_path,avatar_directory(source.class),'0')
|
File.join(relative_path,avatar_directory(source.class),'0')
|
||||||
|
|
Loading…
Reference in New Issue