summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lightbox2.formatter.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lightbox2.formatter.inc b/lightbox2.formatter.inc
index d289dbb..65d6ade 100644
--- a/lightbox2.formatter.inc
+++ b/lightbox2.formatter.inc
@@ -217,6 +217,10 @@ function theme_lightbox2_file_formatter_lightbox2_iframe($file, $field, $file_fo
$url = file_create_url($path);
$icon = theme('filefield_icon', $file);
$description = $file->data['description'];
+ if (is_string($description)) {
+ $data = unserialize($file->data);
+ $description = $data['description'];
+ }
$target = variable_get('lightbox2_node_link_target', FALSE);
if (!empty($target)) {