From 7bcd291517e9aca620e8938e965347a73b620a7a Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Wed, 03 Oct 2012 08:16:52 -0400 Subject: [PATCH] Make sure the timezone config option always contains a valid value --- program/include/rcube_result_thread.php | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/program/include/rcube_result_thread.php b/program/include/rcube_result_thread.php index e93423e..09fa465 100644 --- a/program/include/rcube_result_thread.php +++ b/program/include/rcube_result_thread.php @@ -7,7 +7,10 @@ | This file is part of the Roundcube Webmail client | | Copyright (C) 2005-2011, The Roundcube Dev Team | | Copyright (C) 2011, Kolab Systems AG | - | Licensed under the GNU GPL | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | | | | PURPOSE: | | THREAD response handler | @@ -16,9 +19,6 @@ | Author: Thomas Bruederli <roundcube@gmail.com> | | Author: Aleksander Machniak <alec@alec.pl> | +-----------------------------------------------------------------------+ - - $Id$ - */ @@ -61,6 +61,8 @@ // ...skip unilateral untagged server responses for ($i=0, $len=count($data); $i<$len; $i++) { if (preg_match('/^ THREAD/i', $data[$i])) { + // valid response, initialize raw_data for is_error() + $this->raw_data = ''; $data[$i] = substr($data[$i], 7); break; } -- Gitblit v1.9.1