]> _ Git - fluidbook-toolbox.git/commitdiff
wait #8062 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Mar 2026 15:30:05 +0000 (16:30 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 17 Mar 2026 15:30:05 +0000 (16:30 +0100)
app/Http/Controllers/Admin/Operations/FluidbookCollection/AuditLinksOperation.php

index 0ca3755bb61e64edce988b51860f3469eae3ce08..9d918dac8e9d2fd880f14671ea2cfa738ed8a731 100644 (file)
@@ -262,6 +262,7 @@ trait AuditLinksOperation
             404 => __('Not found: the page does not exist anymore'),
             401 => __('Unauthorized: the page may be accessible only to logged in users'),
             403 => __('The auditing tool may have been blocked by a anti bot protection. A manual check may be needed'),
+            406 => __('The auditing tool cannot open the page. A manual check may be needed'),
             400 => __('Bad request'),
             600 => __('The URL is invalid'),
             429 => __('The URL is invalid'),
@@ -313,7 +314,7 @@ trait AuditLinksOperation
                 if ($column !== "new_url") {
                     $style->getProtection()->setLocked(Protection::PROTECTION_PROTECTED);
                 }
-                if ($column === 'http_code' || $column === 'target_code' && isset($codes[$value])) {
+                if (($column === 'http_code' || $column === 'target_code') && isset($codes[$value])) {
                     $c = $sheet->getComment([$col, $row]);
                     $c->getText()->createText($codes[$value]);
                     $c->setWidth('300px');