Only use identify if we have to

This commit is contained in:
Michael Foster
2013-08-03 20:50:37 -04:00
parent 5300ffadf1
commit b67fc7d54e
2 changed files with 13 additions and 4 deletions

View File

@@ -464,7 +464,7 @@ if (isset($_POST['delete'])) {
}
// create image object
$image = new Image($upload, $post['extension']);
$image = new Image($upload, $post['extension'], $size);
if ($image->size->width > $config['max_width'] || $image->size->height > $config['max_height']) {
$image->delete();
error($config['error']['maxsize']);