Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

backported notice fix from HEAD

  • Loading branch information...
commit 1a0fe7131af28494d76c36713695a580a0a80f7e 1 parent 633fe52
skodak authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/gdlib.php
View
4 lib/gdlib.php
@@ -119,7 +119,9 @@ function save_profile_image($id, $uploadmanager, $dir='users') {
$imageinfo = GetImageSize($originalfile);
if (empty($imageinfo)) {
- unlink($originalfile);
+ if (file_exists($originalfile)) {
+ unlink($originalfile);
+ }
return false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.