diff options
| author | Lester Caine <lester@lsces.co.uk> | 2007-06-20 20:14:23 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2007-06-20 20:14:23 +0000 |
| commit | d28a63f5cd5f43976d85b883336245d83eacf62a (patch) | |
| tree | a13a0fedf4d629f6396533bf40cff1695e2b46fa /FisheyeImage.php | |
| parent | c335775e453a98e2dc4da77ce5208a581fc584ea (diff) | |
| download | fisheye-d28a63f5cd5f43976d85b883336245d83eacf62a.tar.gz fisheye-d28a63f5cd5f43976d85b883336245d83eacf62a.tar.bz2 fisheye-d28a63f5cd5f43976d85b883336245d83eacf62a.zip | |
Ignore 'storage_guid' if LibertyAttachment has not returned a valid link to image
Diffstat (limited to 'FisheyeImage.php')
| -rw-r--r-- | FisheyeImage.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/FisheyeImage.php b/FisheyeImage.php index 7ea46f2..113aa84 100644 --- a/FisheyeImage.php +++ b/FisheyeImage.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeImage.php,v 1.56 2007/06/18 21:53:55 nickpalmer Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeImage.php,v 1.57 2007/06/20 20:14:23 lsces Exp $ * @package fisheye */ @@ -204,12 +204,11 @@ class FisheyeImage extends FisheyeBase { $this->expungeAttachment($currentImageAttachmentId); } // get storage format back from LibertyAttachment - $storage_guid = $pStorageHash['storage_guid']; $this->mContentId = $pStorageHash['content_id']; $this->mInfo['content_id'] = $this->mContentId; - if (!empty($pStorageHash['STORAGE'][$storage_guid]['upload']['source_file'])) { - $imageDetails = $this->getImageDetails($pStorageHash['STORAGE'][$storage_guid]['upload']['source_file']); + if ( isset($pStorageHash['storage_guid']) && !empty($pStorageHash['STORAGE'][$pStorageHash['storage_guid']]['upload']['source_file'])) { + $imageDetails = $this->getImageDetails($pStorageHash['STORAGE'][$pStorageHash['storage_guid']]['upload']['source_file']); } else { $imageDetails = NULL; } |
