]> _ Git - fluidbook-toolbox.git/commitdiff
#7894
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jan 2026 13:00:30 +0000 (14:00 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 19 Jan 2026 13:00:30 +0000 (14:00 +0100)
app/Fluidbook/Link/LinksData.php

index db8d24950a3f15b715729039f1e64b6c2f4e06a9..a24ecd32f22baab282bed4444d66237bac259013 100644 (file)
@@ -851,7 +851,7 @@ class LinksData
                 $change = true;
                 $links[$d['id']]['alt'] = $alt;
             }
-            self::saveLinksInFile($book->id, backpack_user() ?? backpack_user()->id, 'Alternative contents automatically ocerized', $links, $rulers);
+            self::saveLinksInFile($book->id, backpack_user() == null ? 0 : backpack_user()->id, 'Alternative contents automatically ocerized', $links, $rulers);
         }
         return $res;
     }