Function getCredentials was returning false for plugins that never had a license...
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 17 Apr 2017 19:37:50 +0000 (15:37 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 17 Apr 2017 19:37:50 +0000 (15:37 -0400)
lib/opentools-update-checker/opentools-update-checker.php

index 6f0b4bb..34137bc 100644 (file)
@@ -50,7 +50,7 @@ class OpenToolsPluginUpdateChecker extends PluginUpdateChecker_3_1 {
     {
         $credentials = array('validated' => FALSE);
         foreach ($this->credvars as $credkey => $credname) {
-            $credentials[$credkey] = get_option('otup_credentials_'.$slug.'_'.$credkey);
+            $credentials[$credkey] = get_option('otup_credentials_'.$slug.'_'.$credkey, '');
         }
         $credentials['validated']    = get_option('otup_credentials_validated_'.$slug);
         return $credentials;