# HG changeset patch # User Charlie Root # Date 1516126210 18000 # Node ID 678dcc5152a8a8e17c758479e9719c3a31137cfd # Parent c3a974bdb435763a484964bc7b3d36d7b5844fc1 restore mistaken deletion diff -r c3a974bdb435 -r 678dcc5152a8 plugins/thunderbird_labels/thunderbird_labels.php --- 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