]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6051 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jun 2023 15:16:15 +0000 (17:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 16 Jun 2023 15:16:15 +0000 (17:16 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/LinksOperation.php
config/app.php

index c5fd751b754038f9b655de0bda16ef2a3a9da28d..180ed66d968781f0280eb5140b982270b41a8d6c 100644 (file)
@@ -105,7 +105,11 @@ trait LinksOperation
                     $ph = array_search($link['to'], $numerotation) + 1;
                     if ($ph >= $from) {
                         $ph += $offset;
-                        $vi = $numerotation[($ph - 1)];
+                        if (isset($numerotation[($ph - 1)])) {
+                            $vi = $numerotation[($ph - 1)];
+                        } else {
+                            throw new \Error(__('Problème de numĂ©rotation virtuelle'));
+                        }
                         $link['to'] = $vi;
                     }
                 }
index 335768003202bfbab55d5faa7dc7f8c20fffac38..70c0178840fa3af8b48c3346a52c1b318d2a85c1 100644 (file)
@@ -39,7 +39,7 @@ return [
     |
     */
 
-    'debug' => !isset($_SERVER['HTTP_X_REAL_IP']) || in_array($_SERVER['HTTP_X_REAL_IP'], ['130.180.213.67']) ? env('APP_DEBUG') : false,
+    'debug' => !isset($_SERVER['HTTP_X_REAL_IP']) || in_array($_SERVER['HTTP_X_REAL_IP'], ['130.180.213.67', '82.64.156.165']) ? env('APP_DEBUG') : false,
 
     /*
     |--------------------------------------------------------------------------