From 412c079b033a87da3821da2e25bb19ce13177731 Mon Sep 17 00:00:00 2001 From: Mario Hros Date: Wed, 5 Aug 2020 13:49:26 +0200 Subject: [PATCH] fix php warning yourls_get_option default value is false unless other default is specified --- plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index 9afc6fe..af62720 100644 --- a/plugin.php +++ b/plugin.php @@ -281,7 +281,7 @@ function ldapauth_merge_users() { if ( !ldapauth_environment_check() ) { die( 'Invalid configuration for YOURLS LDAP plugin. Check PHP error log.' ); } - if(LDAPAUTH_USERCACHE_TYPE==1 && null !== yourls_get_option('ldapauth_usercache')) { + if(LDAPAUTH_USERCACHE_TYPE==1 && false !== yourls_get_option('ldapauth_usercache')) { ldapauth_debug("Merging text file users and cached LDAP users"); $yourls_user_passwords = array_merge($yourls_user_passwords, yourls_get_option('ldapauth_usercache')); }