From: kink Date: Thu, 19 Oct 2006 11:46:25 +0000 (+0000) Subject: - Translate plugin: prevent PHP notice when viewing empty message. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c141811060fdc619f178a5e4571459b2b37b3bf9;p=squirrelmail.git - 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 --- 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 */