Changeset 75 for trunk/client/modules/Elezioni/funzioni.php
- Timestamp:
- Apr 3, 2010, 6:47:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/funzioni.php
r73 r75 426 426 function arrayperc($temp,$sevaltot) 427 427 { 428 $temp2tot=0;$temp2=array(); 428 $temp2tot=0;$temp2=array();$temp3=array(); 429 429 while (list($key,$voti)= each($temp)) { 430 430 if($voti) … … 440 440 } 441 441 } 442 if("$temp2tot"=="100" ) return($temp3);442 if("$temp2tot"=="100" or $temp2tot==0) return($temp3); 443 443 while ($temp2tot<100.00){ 444 444 foreach ($temp2 as $key => $val) {
Note:
See TracChangeset
for help on using the changeset viewer.