From c141811060fdc619f178a5e4571459b2b37b3bf9 Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 19 Oct 2006 11:46:25 +0000 Subject: [PATCH] - Translate plugin: prevent PHP notice when viewing empty message. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11926 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/translate/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/translate/functions.php b/plugins/translate/functions.php index 0d22c64c..7f2c6458 100644 --- a/plugins/translate/functions.php +++ b/plugins/translate/functions.php @@ -93,7 +93,7 @@ function translate_read_form_function() { $trans_ar = $message->findDisplayEntity(array(), array('text/plain')); $body = ''; $final_body = ''; - if ($trans_ar[0] != '') { + if ( !empty($trans_ar[0]) ) { for ($i = 0; $i < count($trans_ar); $i++) { /* reduced version of formatBody and translateText functions */ -- 2.25.1