]> BookStack Code Mirror - bookstack/blobdiff - app/helpers.php
Added front-end toggle and testing of inline attachments
[bookstack] / app / helpers.php
index c090bfd055acc400e1ad4c46e7059b6c19820f60..c1d72b91da4fb7f5bb3efba3a2de46490ec3dce9 100644 (file)
@@ -79,9 +79,9 @@ function userCanOnAny(string $permission, string $entityClass = null): bool
 
 /**
  * Helper to access system settings.
- * @return bool|string|SettingService
+ * @return mixed|SettingService
  */
-function setting(string $key = null, $default = false)
+function setting(string $key = null, $default = null)
 {
     $settingService = resolve(SettingService::class);