Avoid comparing translated strings and simplify the code.
This commit is contained in:
@@ -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){
|
||||||
$tracking_active = false;
|
if ($version['tracking_active'] == 1) {
|
||||||
}
|
$tracking_active = true;
|
||||||
if (($version['version'] == $last_version) && ($version_status == __('active'))) {
|
} else {
|
||||||
$tracking_active = true;
|
$tracking_active = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="noclick <?php echo $style;?>">
|
<tr class="noclick <?php echo $style;?>">
|
||||||
|
Reference in New Issue
Block a user