forked from GNUsocial/gnu-social
hide warnings when unlinking an avatar file
darcs-hash:20080612185322-84dde-b14d4cbc90f3b5b04931e4b5d3c20f027abb609c.gz
This commit is contained in:
parent
c2a170da10
commit
2bc198432c
@ -31,7 +31,7 @@ class Avatar extends DB_DataObject
|
||||
function delete() {
|
||||
$filename = $this->filename;
|
||||
if (parent::delete()) {
|
||||
unlink(common_avatar_path($filename));
|
||||
@unlink(common_avatar_path($filename));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user