hide warnings when unlinking an avatar file

darcs-hash:20080612185322-84dde-b14d4cbc90f3b5b04931e4b5d3c20f027abb609c.gz
This commit is contained in:
Evan Prodromou 2008-06-12 14:53:22 -04:00
parent c2a170da10
commit 2bc198432c

View File

@ -31,7 +31,7 @@ class Avatar extends DB_DataObject
function delete() { function delete() {
$filename = $this->filename; $filename = $this->filename;
if (parent::delete()) { if (parent::delete()) {
unlink(common_avatar_path($filename)); @unlink(common_avatar_path($filename));
} }
} }