Ignore:
Timestamp:
Feb 27, 2010, 12:44:30 AM (14 years ago)
Author:
grum
Message:

Canon camera's maker note implementation + extended Xmp segments managed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/JpegMetaData/Common/ConvertData.class.php

    r4686 r4972  
    346346     * or
    347347     * Convert multiples null terminated string into an array of string
     348     *    ==> if strings are null (eq. "\x00") nothing is added to the array
    348349     *
    349350     * Example:
     
    365366        return("");
    366367      }
    367       elseif($occurs==1)
    368       {
    369         return($result[1][0]);
    370       }
    371       else
    372       {
    373         return($result[1]);
     368      else
     369      {
     370        $returned=Array();
     371        foreach($result[1] as $pop)
     372        {
     373          if($pop!="")
     374          {
     375            $returned[]=$pop;
     376          }
     377        }
     378        if(count($returned)==1)
     379        {
     380          return($returned[0]);
     381        }
     382        elseif(count($returned)==0)
     383        {
     384          return("");
     385        }
     386        else
     387        {
     388          return($returned);
     389        }
    374390      }
    375391    }
Note: See TracChangeset for help on using the changeset viewer.