Fix small bugs
This commit is contained in:
committed by
M. Shull
parent
17949d06d5
commit
fee3b58e4e
@ -94,7 +94,7 @@ class ContainerConfigurator implements IContainerConfigurator {
|
||||
// Settings
|
||||
$container->autowire(\MailPoet\Settings\SettingsController::class)->setPublic(true);
|
||||
// User Flags
|
||||
$container->autowire(\MailPoet\Settings\UserFlagsController::class)->setPublic(false);
|
||||
$container->autowire(\MailPoet\Settings\UserFlagsController::class);
|
||||
// Subscription
|
||||
$container->autowire(\MailPoet\Subscription\Comment::class)->setPublic(true);
|
||||
$container->autowire(\MailPoet\Subscription\Form::class)->setPublic(true);
|
||||
|
@ -25,7 +25,7 @@ class UserFlagsController {
|
||||
|
||||
function get($name) {
|
||||
$this->ensureLoaded();
|
||||
if (empty($this->data[$name])) {
|
||||
if (!isset($this->data[$name])) {
|
||||
return $this->defaults[$name];
|
||||
}
|
||||
return $this->data[$name];
|
||||
|
Reference in New Issue
Block a user