summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2021-02-08 23:34:28 -0500
committerspiderr <spiderr@bitweaver.org>2021-02-08 23:34:28 -0500
commit8233282a8001567dcfe80446ed8c454a7d6f171e (patch)
tree2ad877c3de225c6d9495a9518871189ac80b73c6
parent19cec5c7f1bda5401745ba51085cf04dc1325488 (diff)
downloadfisheye-8233282a8001567dcfe80446ed8c454a7d6f171e.tar.gz
fisheye-8233282a8001567dcfe80446ed8c454a7d6f171e.tar.bz2
fisheye-8233282a8001567dcfe80446ed8c454a7d6f171e.zip
is_array check on pGalleryId
-rw-r--r--includes/classes/FisheyeBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/FisheyeBase.php b/includes/classes/FisheyeBase.php
index 1519151..d0f3c88 100644
--- a/includes/classes/FisheyeBase.php
+++ b/includes/classes/FisheyeBase.php
@@ -175,7 +175,7 @@ not ready for primetime
if( $this->isValid() ) {
$inGalleries = $this->mDb->getAssoc( "SELECT `gallery_id`,`gallery_content_id` FROM `".BIT_DB_PREFIX."fisheye_gallery_image_map` fgim INNER JOIN `".BIT_DB_PREFIX."fisheye_gallery` fg ON (fgim.`gallery_content_id`=fg.`content_id`) WHERE `item_content_id` = ?", array( $this->mContentId ) );
$galleries = array();
- if( count( $pGalleryArray ) ) {
+ if( is_array( $pGalleryArray ) && count( $pGalleryArray ) ) {
foreach( $pGalleryArray as $galleryId ) {
// image has been requested to be put in a new gallery
if( !is_numeric( $galleryId ) ) {