Problem/Motivation
<?php
if (!$language->isLocked() && $language->getWeight() > $max_weight) {
$max_weight = $language->getWeight();
}
?>
Proposed resolution
Use max()
<?php
if (!$language->isLocked() && $language->getWeight() > $max_weight) {
$max_weight = $language->getWeight();
}
?>
Use max()