From d6fbf61e07e0fa4da2b92e76aab2d099c01666ca Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 10 Jul 2010 20:35:03 -0400 Subject: [PATCH] avoid undefined index warnings --- kronolith/lib/Kronolith.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kronolith/lib/Kronolith.php b/kronolith/lib/Kronolith.php index 41e690e50..628afd023 100644 --- a/kronolith/lib/Kronolith.php +++ b/kronolith/lib/Kronolith.php @@ -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'); -- 2.11.0