avoid undefined index warnings
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 11 Jul 2010 00:35:03 +0000 (20:35 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 11 Jul 2010 00:35:03 +0000 (20:35 -0400)
kronolith/lib/Kronolith.php

index 41e690e..628afd0 100644 (file)
@@ -1924,7 +1924,7 @@ class Kronolith
             throw new Kronolith_Exception(_("You must specify a name and a URL."));
         }
 
-        if (strlen($info['username']) || strlen($info['password'])) {
+        if (!empty($info['username']) || !empty($info['password'])) {
             $key = $GLOBALS['registry']->getAuthCredential('password');
             if ($key) {
                 $secret = $GLOBALS['injector']->getInstance('Horde_Secret');