Take 6 on last

Chris Pollett [2023-11-22 20:Nov:nd]
Take 6 on last
Filename
src/executables/ArcTool.php
diff --git a/src/executables/ArcTool.php b/src/executables/ArcTool.php
index 7ce70bfc6..4a3f5dc09 100755
--- a/src/executables/ArcTool.php
+++ b/src/executables/ArcTool.php
@@ -410,12 +410,10 @@ class ArcTool extends DictionaryUpdater implements CrawlConstants
                 echo "RECORD: $i\n";
                 echo "PARTITION: {$record['PARTITION']}\n";
                 echo "NUMBER OF DOCS: {$record['NUM_DOCS']}\n\n";
-                $postings_offset = -1;
-                $postings_len = -1;
                 if ($this->archive_info['VERSION'] < "3.2") {
                     $postings_offset = (empty($record['POSTINGS'])) ?
                         -1: $record['POSTINGS'];
-                    $postings_len = (empty($record['LAST_BLOB_LEN']))?
+                    $postings_len = (empty($record['LAST_BLOB_LEN'])) ?
                         -1 : $record['LAST_BLOB_LEN'];
                 } else {
                     $postings_offset = (empty($record['POSTINGS_OFFSET'])) ?
@@ -423,10 +421,10 @@ class ArcTool extends DictionaryUpdater implements CrawlConstants
                     $postings_len = (empty($record['POSTINGS_LEN']))?
                         -1 : $record['POSTINGS_LEN'];
                 }
-                if ($postings_offset == -1)) {
+                if ($postings_offset == -1) {
                     echo "No POSTINGS_LEN or LAST_BLOB_LEN, record postings".
                         " cannot be looked up\n";
-                } else if (isset($record['POSTINGS'] &&
+                } else if (isset($record['POSTINGS']) &&
                     is_array($record['POSTINGS'])) {
                     echo "Active Record\n-------------\n";
                     echo "By default list details of all postings\n";
ViewGit