]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookController.php
Added missing welsh locale to config
[bookstack] / app / Http / Controllers / BookController.php
index 937f7d28f1817670bf4af3a18135bbf0aaf2362e..681ed96bb7cfd4bfb2afcd520e6f005956c7f59d 100644 (file)
@@ -167,7 +167,7 @@ class BookController extends Controller
 
         if ($request->has('image_reset')) {
             $validated['image'] = null;
-        } else if (array_key_exists('image', $validated) && is_null($validated['image'])) {
+        } elseif (array_key_exists('image', $validated) && is_null($validated['image'])) {
             unset($validated['image']);
         }