From: pdontthink Date: Fri, 29 Dec 2017 20:03:40 +0000 (+0000) Subject: Seriously? The variable is named as an array and initialized as a string? Well, I... X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=e7d5ff29db69101e42cd491d2fa42d4f83cd35a4;hp=049dd3d14ad72a9d624f6b67826e82ad1015c9dc Seriously? The variable is named as an array and initialized as a string? Well, I hope no callers were expecting a potentially empty string, because now they will get an empty array instead. empty() should handle this fine, hopefully callers do something sane like that. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14748 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_general.php b/functions/imap_general.php index 34ee5733..943b952f 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -410,7 +410,7 @@ function sqimap_retrieve_imap_response($imap_stream, $tag, $handle_errors, $read = ''; if (!is_array($message)) $message = array(); if (!is_array($response)) $response = array(); - $aResponse = ''; + $aResponse = array(); $resultlist = array(); $data = array(); $sCommand = '';