From 2129b4e2c0e13de7836b457707a1d53f758aabfe Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 8 Mar 2021 14:29:23 +0100 Subject: [PATCH] Fix PHP warnings --- plugins/kolab_2fa/lib/Kolab2FA/Driver/Yubikey.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/kolab_2fa/lib/Kolab2FA/Driver/Yubikey.php b/plugins/kolab_2fa/lib/Kolab2FA/Driver/Yubikey.php index b6fbf86b..7220b599 100644 --- a/plugins/kolab_2fa/lib/Kolab2FA/Driver/Yubikey.php +++ b/plugins/kolab_2fa/lib/Kolab2FA/Driver/Yubikey.php @@ -32,7 +32,7 @@ class Yubikey extends Base /** * */ - public function init(array $config) + public function init($config) { parent::init($config); @@ -89,7 +89,7 @@ class Yubikey extends Base /** * @override */ - public function set($key, $value) + public function set($key, $value, $persistent = true) { if ($key == 'yubikeyid' && strlen($value) > 12) { // verify the submitted code @@ -108,7 +108,7 @@ class Yubikey extends Base $value = substr($value, 0, 12); } - return parent::set($key, $value); + return parent::set($key, $value, $persistent); } /**