mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 10:08:01 +02:00
fix empty needle warning on compose change profile/signature
This commit is contained in:
@ -603,12 +603,12 @@ class mail_compose
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// try the old way
|
// try the old way
|
||||||
$found = strpos($content['body'],trim($oldSigText));
|
$found = (strlen(trim($oldSigText))>0?strpos($content['body'],trim($oldSigText)):false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$found = strpos($content['body'],trim($oldSigText));
|
$found = (strlen(trim($oldSigText))>0?strpos($content['body'],trim($oldSigText)):false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($found !== false && $_oldSig != -2 && !(empty($oldSigText) || trim($this->convertHTMLToText($oldSigText,true,true)) ==''))
|
if ($found !== false && $_oldSig != -2 && !(empty($oldSigText) || trim($this->convertHTMLToText($oldSigText,true,true)) ==''))
|
||||||
|
Reference in New Issue
Block a user