diff --git a/templates/element/genericElements/IndexTable/Fields/remote_status.php b/templates/element/genericElements/IndexTable/Fields/remote_status.php
index 8bb63d648..4db22f54a 100644
--- a/templates/element/genericElements/IndexTable/Fields/remote_status.php
+++ b/templates/element/genericElements/IndexTable/Fields/remote_status.php
@@ -1,30 +1,29 @@
Hash->extract($row, $field['data_path'] . 'exists_locally')[0];
- if ($exists) {
- $differences = $this->Hash->extract($row, $field['data_path'] . 'differences');
- }
- if (empty($exists)) {
- $icon = 'times';
- $colour = 'red';
- $text = __('Object does not exist locally.');
+$exists = $this->Hash->extract($row, $field['data_path'] . 'exists_locally')[0];
+if ($exists) {
+ $differences = $this->Hash->extract($row, $field['data_path'] . 'differences');
+}
+if (empty($exists)) {
+ $icon = 'times';
+ $colour = 'red';
+ $text = __('Object does not exist locally.');
+} else {
+ if (empty($differences)) {
+ $icon = 'check';
+ $colour = 'green';
+ $text = __('Object exists locally.');
} else {
- if (empty($differences)) {
- $icon = 'check';
- $colour = 'green';
- $text = __('Object exists locally.');
- } else {
- $icon = 'sync';
- $colour = 'organge';
- $text = __('Object exists locally, but the following fields contain different information on the remote: {0}', implode(', ', $differences));
- }
+ $icon = 'sync';
+ $colour = 'organge';
+ $text = __('Object exists locally, but the following fields contain different information on the remote: {0}', implode(', ', $differences));
}
- echo sprintf(
- '',
- $colour,
- $icon,
- $text,
- $text
- );
-?>
+}
+echo sprintf(
+ '',
+ $colour,
+ $icon,
+ $text,
+ $text
+);