Changeset 13192 for extensions/exif_view


Ignore:
Timestamp:
02/16/12 19:10:36 (8 years ago)
Author:
plg
Message:

fix bug for SubjectDistance with no / inside

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/exif_view/main.inc.php

    r13181 r13192  
    221221   if (!(strpos($key, 'SubjectDistance') === FALSE)) { 
    222222      $tokens = explode('/', $value); 
    223       return ($tokens[0]/$tokens[1]).' m'; 
     223      if (isset($tokens[1])) 
     224      {   
     225        $distance = $tokens[0]/$tokens[1]; 
     226      } 
     227      else 
     228      {   
     229        $distance = $value; 
     230      } 
     231      return $distance.' m'; 
    224232   } 
    225233 
Note: See TracChangeset for help on using the changeset viewer.