- Timestamp:
- Feb 27, 2010, 12:44:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/Common/ConvertData.class.php
r4686 r4972 346 346 * or 347 347 * Convert multiples null terminated string into an array of string 348 * ==> if strings are null (eq. "\x00") nothing is added to the array 348 349 * 349 350 * Example: … … 365 366 return(""); 366 367 } 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 } 374 390 } 375 391 }
Note: See TracChangeset
for help on using the changeset viewer.