From: Michael M Slusarz Date: Fri, 28 Jan 2011 18:38:05 +0000 (-0700) Subject: Ensure return from this method is a string X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a77bcbc57778c3af4cb93cb32579f3e4c5589699;p=horde.git Ensure return from this method is a string --- diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Utf7imap.php b/framework/Imap_Client/lib/Horde/Imap/Client/Utf7imap.php index b54f99751..670d8fd92 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Utf7imap.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Utf7imap.php @@ -165,7 +165,7 @@ class Horde_Imap_Client_Utf7imap { /* No need to do conversion if all chars are in US-ASCII range. */ if (!preg_match('/[\x80-\xff]/', $str)) { - return $str; + return strval($str); } /* Try mbstring, if available, which should be faster. Don't use the