summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-12 14:53:22 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-12 14:53:22 -0400
commit2bc198432c1bd61ed98d49568869f341badb2057 (patch)
tree2e79f5834c02d0455f69f3e18969678c2bd13c40
parentc2a170da108a6645846aa2e60238974b49363b21 (diff)
hide warnings when unlinking an avatar file
darcs-hash:20080612185322-84dde-b14d4cbc90f3b5b04931e4b5d3c20f027abb609c.gz
-rw-r--r--classes/Avatar.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Avatar.php b/classes/Avatar.php
index ca2e0cbce..24dca038e 100644
--- a/classes/Avatar.php
+++ b/classes/Avatar.php
@@ -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));
}
}