diff options
| author | spiderr <spiderr@bitweaver.org> | 2020-11-18 12:00:30 -0500 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2020-11-18 12:00:30 -0500 |
| commit | b6519dc69db7239970c62891d1f473b4e0daf1df (patch) | |
| tree | 9988ec6f41f4c0728c9ea54031f77286fc96465a | |
| parent | 648a900659ecd29827e57daded6478ed13824774 (diff) | |
| download | fisheye-b6519dc69db7239970c62891d1f473b4e0daf1df.tar.gz fisheye-b6519dc69db7239970c62891d1f473b4e0daf1df.tar.bz2 fisheye-b6519dc69db7239970c62891d1f473b4e0daf1df.zip | |
add empty checkout around pParentGallery
| -rw-r--r-- | upload_inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/upload_inc.php b/upload_inc.php index 1612848..90957fb 100644 --- a/upload_inc.php +++ b/upload_inc.php @@ -163,7 +163,9 @@ function fisheye_process_archive( &$pFileHash, &$pParentGallery, $pRoot=FALSE ) $gContent = &$pParentGallery; } - $pFileHash['gallery_id'] = $pParentGallery->getField( 'gallery_id' ); + if( !empty( $pParentGallery ) ) { + $pFileHash['gallery_id'] = $pParentGallery->getField( 'gallery_id' ); + } fisheye_process_directory( $destDir, $pParentGallery, $pRoot ); } else { global $gBitUser; |
