]> git.mxchange.org Git - friendica.git/commitdiff
Show lock status even when feature is disabled in Admin/Features
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 15 Dec 2022 02:30:47 +0000 (21:30 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 15 Dec 2022 02:30:47 +0000 (21:30 -0500)
src/Module/Admin/Features.php

index 6fdefb0a9c1d89a0f8c1868109c33f2e02e51829..e6a80f6ebee6e3ef0b6f8ea61893cd539c46d506 100644 (file)
@@ -50,7 +50,7 @@ class Features extends BaseAdmin
                                DI::config()->set('feature', $feature, $val);
 
                                if (!empty($_POST[$featurelock])) {
-                                       DI::config()->set('feature_lock', $feature, $val);
+                                       DI::config()->set('feature_lock', $feature, 1);
                                } else {
                                        DI::config()->delete('feature_lock', $feature);
                                }