Changeset 5040 for extensions/AMetaData/amd_aip.class.inc.php
- Timestamp:
- Mar 4, 2010, 10:35:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/amd_aip.class.inc.php
r4999 r5040 1032 1032 "label" => L10n::get($row['name']), 1033 1033 "nb" => $row['numOfImg'], 1034 "pct" => ($numOfPictures!=0)?sprintf("%.2f", 100*$row['numOfImg']/$numOfPictures):" -",1034 "pct" => ($numOfPictures!=0)?sprintf("%.2f", 100*$row['numOfImg']/$numOfPictures):"0", 1035 1035 "tagChecked" => ($row['checked']=='y')?"checked":"" 1036 1036 ); … … 1272 1272 'numId' => $row['numId'], 1273 1273 'nbItems' => $row['numOfImg'], 1274 'pct' => sprintf("%.2f", 100*$row['numOfImg']/$numOfPictures)1274 'pct' => ($numOfPictures==0)?"0":sprintf("%.2f", 100*$row['numOfImg']/$numOfPictures) 1275 1275 ); 1276 1276 }
Note: See TracChangeset
for help on using the changeset viewer.