changeset 21:678dcc5152a8

restore mistaken deletion
author Charlie Root
date Tue, 16 Jan 2018 13:10:10 -0500
parents c3a974bdb435
children 61316094e61d
files plugins/thunderbird_labels/thunderbird_labels.php
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/thunderbird_labels/thunderbird_labels.php	Tue Jan 16 13:09:08 2018 -0500
+++ b/plugins/thunderbird_labels/thunderbird_labels.php	Tue Jan 16 13:10:10 2018 -0500
@@ -331,6 +331,7 @@
 			#rcube::write_log($this->name, print_r($message->flags, true));
 			$message->list_flags['extra_flags']['tb_labels'] = array(); # always set extra_flags, needed for javascript later!
 			$message->list_flags['extra_flags']['tb_parms'] = array();
+			if (is_array($message->flags))
 			foreach ($message->flags as $flagname => $flagvalue)
 			{
 				$flag = is_numeric("$flagvalue")? $flagname:$flagvalue;// for compatibility with < 0.5.4