Changeset 27556
- Timestamp:
- Mar 4, 2014, 1:42:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/exif_view/main.inc.php
r27136 r27556 1 1 <?php /* 2 2 Plugin Name: Exif View 3 Version: auto3 Version: 2.6.b 4 4 Description: Converts EXIF values to human readable localized values. Corresponds to EXIF specification 2.2, details in http://www.exif.org. Easily extensible. 5 5 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=155 … … 215 215 if (!(strpos($key, 'DigitalZoomRatio') === FALSE)) { 216 216 $tokens = explode('/', $value); 217 return ($tokens[0]/$tokens[1]); 217 if (isset($tokens[1])) 218 { 219 if ($tokens[1] > 0) 220 { 221 return ($tokens[0]/$tokens[1]); 222 } 223 else 224 { 225 return $tokens[0]; 226 } 227 } 228 else 229 { 230 return $value; 231 } 218 232 } 219 233
Note: See TracChangeset
for help on using the changeset viewer.