From: Michael J. Rubinsky Date: Sun, 11 Jul 2010 00:35:03 +0000 (-0400) Subject: avoid undefined index warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=d6fbf61e07e0fa4da2b92e76aab2d099c01666ca;p=horde.git avoid undefined index warnings --- 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');