From: Evan Prodromou Date: Thu, 12 Jun 2008 18:53:22 +0000 (-0400) Subject: hide warnings when unlinking an avatar file X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2bc198432c1bd61ed98d49568869f341badb2057;p=quix0rs-gnu-social.git hide warnings when unlinking an avatar file darcs-hash:20080612185322-84dde-b14d4cbc90f3b5b04931e4b5d3c20f027abb609c.gz --- diff --git a/classes/Avatar.php b/classes/Avatar.php index ca2e0cbce4..24dca038ee 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)); } }