From d28a63f5cd5f43976d85b883336245d83eacf62a Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Wed, 20 Jun 2007 20:14:23 +0000 Subject: Ignore 'storage_guid' if LibertyAttachment has not returned a valid link to image --- FisheyeImage.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'FisheyeImage.php') diff --git a/FisheyeImage.php b/FisheyeImage.php index 7ea46f2..113aa84 100644 --- a/FisheyeImage.php +++ b/FisheyeImage.php @@ -1,6 +1,6 @@ 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; } -- cgit v1.3