ranking > 0) { if (isset($arrRankingAutor[$objInfo->autor])) { $arrRankingAutor[$objInfo->autor] = intval($arrRankingAutor[$objInfo->autor]) + intval($objInfo->ranking); } else { $arrRankingAutor[$objInfo->autor] = intval($objInfo->ranking); } } else { break; } } $max_ranking = 0; $max_autores = array(); foreach( $arrRankingAutor as $autor => $ranking ) { if ($ranking > $max_ranking) { $max_ranking = $ranking; $max_autores = array(); $max_autores[] = $autor; } else { if ($ranking = $max_ranking) { $max_autores[] = $autor; } } } ?>
Usuario(s) que agregó información con mas ranking: |