]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hide warnings when unlinking an avatar file
authorEvan Prodromou <evan@prodromou.name>
Thu, 12 Jun 2008 18:53:22 +0000 (14:53 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 12 Jun 2008 18:53:22 +0000 (14:53 -0400)
darcs-hash:20080612185322-84dde-b14d4cbc90f3b5b04931e4b5d3c20f027abb609c.gz

classes/Avatar.php

index ca2e0cbce4ee49e3a555d87e55a57ed6310efffd..24dca038ee359fce79fb391c6503251430dec0fb 100644 (file)
@@ -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));
                }
        }