diff options
| author | spiderr <spiderr@bitweaver.org> | 2021-02-08 23:34:28 -0500 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2021-02-08 23:34:28 -0500 |
| commit | 8233282a8001567dcfe80446ed8c454a7d6f171e (patch) | |
| tree | 2ad877c3de225c6d9495a9518871189ac80b73c6 | |
| parent | 19cec5c7f1bda5401745ba51085cf04dc1325488 (diff) | |
| download | fisheye-8233282a8001567dcfe80446ed8c454a7d6f171e.tar.gz fisheye-8233282a8001567dcfe80446ed8c454a7d6f171e.tar.bz2 fisheye-8233282a8001567dcfe80446ed8c454a7d6f171e.zip | |
is_array check on pGalleryId
| -rw-r--r-- | includes/classes/FisheyeBase.php | 2 |
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 ) ) { |
