From aee1aea7ba28f611ed8083f1ff2c707746de6af9 Mon Sep 17 00:00:00 2001 From: SL-Gundam Date: Thu, 5 Apr 2018 18:10:44 +0200 Subject: [PATCH] Correct parameter mb_substr_count call --- core/mail_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/mail_api.php b/core/mail_api.php index 592b25c..96bbbc8 100644 --- a/core/mail_api.php +++ b/core/mail_api.php @@ -1610,7 +1610,7 @@ private function identify_replies( $p_description ) $t_email_separator1 = mb_substr( $this->_email_separator1, 0, -1 ); $t_first_occurence = mb_strpos( $t_description, $t_email_separator1 ); - if ( $t_first_occurence !== FALSE && mb_substr_count( $t_description, $t_email_separator1, $t_first_occurence ) >= 5 ) + if ( $t_first_occurence !== FALSE && mb_substr_count( $t_description, $t_email_separator1 ) >= 5 ) { $t_description = mb_substr( $t_description, 0, $t_first_occurence ); }