Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Commit

Permalink
Fix fatal error in reset function when image setting does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCarmen committed Apr 17, 2017
1 parent e273ebe commit 85c5798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/JustBlackThemeOptionsClass.php
Expand Up @@ -346,7 +346,7 @@ private function resize($imgSrc, $type, $thumbwidth, $thumbheight) {

protected function deleteImage() {
$filename = $this->options('image');
if (file_exists(WT_DATA_DIR . $filename)) {
if ($filename && file_exists(WT_DATA_DIR . $filename)) {
unlink(WT_DATA_DIR . $filename);
}
}
Expand Down

0 comments on commit 85c5798

Please sign in to comment.