summaryrefslogtreecommitdiff
path: root/FisheyeImage.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-06-20 20:14:23 +0000
committerLester Caine <lester@lsces.co.uk>2007-06-20 20:14:23 +0000
commitd28a63f5cd5f43976d85b883336245d83eacf62a (patch)
treea13a0fedf4d629f6396533bf40cff1695e2b46fa /FisheyeImage.php
parentc335775e453a98e2dc4da77ce5208a581fc584ea (diff)
downloadfisheye-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.php7
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;
}