diff --git a/db_tracking.php b/db_tracking.php index 3f98da6ba..fabdab11a 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -24,12 +24,10 @@ require_once './libraries/relation.lib.php'; $data = PMA_Tracker::getTrackedData($_REQUEST['db'], '', '1'); // No tables present and no log exist -if ($num_tables == 0 and count($data['ddlog']) == 0) -{ +if ($num_tables == 0 && count($data['ddlog']) == 0) { echo '
' . $strNoTablesFound . '
' . "\n"; - if (empty($db_is_information_schema)) - { + if (empty($db_is_information_schema)) { require './libraries/display_create_table.lib.php'; } @@ -72,8 +70,7 @@ $maxversion = PMA_DBI_fetch_array($sql_result); $last_version = $maxversion['version']; // If a HEAD version exists -if($last_version > 0) -{ +if ($last_version > 0) { ?> @@ -96,17 +93,19 @@ if($last_version > 0) $style = 'odd'; PMA_DBI_data_seek($sql_result, 0); - while($version = PMA_DBI_fetch_array($sql_result)) - { - if($version['tracking_active'] == 1) + while ($version = PMA_DBI_fetch_array($sql_result)) { + if ($version['tracking_active'] == 1) { $version_status = $strTrackingStatusActive; - else + } else { $version_status = $strTrackingStatusDeactive; + } - if(($version['version'] == $last_version) and ($version_status == $strTrackingStatusDeactive)) + if (($version['version'] == $last_version) && ($version_status == $strTrackingStatusDeactive)) { $tracking_active = false; - if(($version['version'] == $last_version) and ($version_status == $strTrackingStatusActive)) + } + if (($version['version'] == $last_version) && ($version_status == $strTrackingStatusActive)) { $tracking_active = true; + } ?>