diff -r 7f3bd3030ae9 -r d9f37d2ea2cf plugins/gallery/viewimage.php --- a/plugins/gallery/viewimage.php Sun Feb 17 15:21:47 2008 -0500 +++ b/plugins/gallery/viewimage.php Sat Feb 23 16:02:15 2008 -0500 @@ -281,6 +281,10 @@ break; case 'get_tags': + if ( empty($row['img_tags']) ) + { + $row['img_tags'] = '[]'; + } $response = snapr_json_decode($row['img_tags']); foreach ( $response as $key => $_ ) { @@ -338,8 +342,9 @@ $img_url = makeUrlNS('Special', 'GalleryFetcher/preview/' . $img_id); $img_href = makeUrlNS('Special', 'GalleryFetcher/full/' . $img_id); + // The actual image $iehack = ( strstr(@$_SERVER['HTTP_USER_AGENT'], 'MSIE') ) ? ' style="width: 1px;"' : ''; - echo '
Image preview (640px max width)
'; + echo '
Image preview (640px max width)
'; echo '
';