]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookshelfController.php
Added tests to cover convert functionality
[bookstack] / app / Http / Controllers / BookshelfController.php
index ce2e508c87518a162f980473b67babdcfaa53a9f..2f966beed11cee6332549ae66b1f2f61e7ce1c24 100644 (file)
@@ -167,7 +167,7 @@ class BookshelfController extends Controller
 
         if ($request->has('image_reset')) {
             $validated['image'] = null;
-        } else if (is_null($validated['image'])) {
+        } else if (array_key_exists('image', $validated) && is_null($validated['image'])) {
             unset($validated['image']);
         }