Avoid comparing translated strings and simplify the code.

This commit is contained in:
Michal Čihař
2011-03-18 14:48:55 +01:00
parent 13f919da6a
commit 7899b0f199

View File

@@ -601,11 +601,12 @@ if ($last_version > 0) {
} else { } else {
$version_status = __('not active'); $version_status = __('not active');
} }
if (($version['version'] == $last_version) && ($version_status == __('not active'))) { if ($version['version'] == $last_version){
if ($version['tracking_active'] == 1) {
$tracking_active = true;
} else {
$tracking_active = false; $tracking_active = false;
} }
if (($version['version'] == $last_version) && ($version_status == __('active'))) {
$tracking_active = true;
} }
?> ?>
<tr class="noclick <?php echo $style;?>"> <tr class="noclick <?php echo $style;?>">