diff --git a/api/selfie.php b/api/selfie.php index e2055bcb7..5c2de2143 100644 --- a/api/selfie.php +++ b/api/selfie.php @@ -50,7 +50,7 @@ throw new \Exception('Image doesn\'t exist:' . $tmp); } - if (rename($tmp, $filename_tmp)) { + if (!rename($tmp, $filename_tmp)) { throw new \Exception('Failed to rename image!'); }