summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2020-06-20 12:50:53 -0400
committerspiderr <spiderr@bitweaver.org>2020-06-20 12:50:53 -0400
commit8d8a46e5da9fd868070868533a9883778bb41b3b (patch)
treec1824a777ba5e4a8f90f45fde43e281a1ad28da3
parentc6fa94ba0b7c199438a23250af1e728afbcc602f (diff)
downloadfisheye-8d8a46e5da9fd868070868533a9883778bb41b3b.tar.gz
fisheye-8d8a46e5da9fd868070868533a9883778bb41b3b.tar.bz2
fisheye-8d8a46e5da9fd868070868533a9883778bb41b3b.zip
empty check on $_REQUEST['gallery_additions']
-rw-r--r--edit_image.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/edit_image.php b/edit_image.php
index de4fcf4..7fd93c4 100644
--- a/edit_image.php
+++ b/edit_image.php
@@ -86,7 +86,9 @@ if( !empty($_REQUEST['saveImage']) || !empty($_REQUEST['regenerateThumbnails'] )
header( 'Location: '.FISHEYE_PKG_URL."image_order.php?refresh=1&gallery_id=".$_REQUEST['gallery_id'] );
die;
}
- $gContent->addToGalleries( $_REQUEST['gallery_additions'] );
+ if( !empty( $_REQUEST['gallery_additions'] ) ) {
+ $gContent->addToGalleries( $_REQUEST['gallery_additions'] );
+ }
if( !empty( $_REQUEST['generate_thumbnails'] ) ) {
$gContent->generateThumbnails();
}