Index: /branches/2.1/include/picture_metadata.inc.php
===================================================================
--- /branches/2.1/include/picture_metadata.inc.php	(revision 6485)
+++ /branches/2.1/include/picture_metadata.inc.php	(revision 8630)
@@ -27,4 +27,17 @@
  */
 
+// $picture['current']['high_url'] may not be set if the user has no access
+// to the high definition, but we may want to display metadata and read the
+// high definition is available
+$high_url = null;
+if (isset($picture['current']['high_url']))
+{
+  $high_url = $picture['current']['high_url'];
+}
+else
+{
+  $high_url = get_high_url($picture['current']);
+}
+
 include_once(PHPWG_ROOT_PATH.'/include/functions_metadata.inc.php');
 if (($conf['show_exif']) and (function_exists('read_exif_data')))
@@ -39,5 +52,5 @@
   if (count($exif) == 0 and $picture['current']['has_high'])
   {
-    $exif = get_exif_data($picture['current']['high_url'], $exif_mapping);
+    $exif = get_exif_data($high_url, $exif_mapping);
   }
   
@@ -86,5 +99,5 @@
   if (count($iptc) == 0 and $picture['current']['has_high'])
   {
-    $iptc = get_iptc_data($picture['current']['high_url'], $conf['show_iptc_mapping']);
+    $iptc = get_iptc_data($high_url, $conf['show_iptc_mapping']);
   }
 
