diff --git a/lib/GPGCryptography.class.php b/lib/GPGCryptography.class.php index b542478..3589cf7 100644 --- a/lib/GPGCryptography.class.php +++ b/lib/GPGCryptography.class.php @@ -71,7 +71,7 @@ class GPGCryptography } public static function hardUnlink($element) { - if (!$element) { + if (file_exists($element) === false) { return; } if (is_dir($element)) {