1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Emoticon parser PHP warning removal Issue #1633

This commit is contained in:
Cameron
2016-05-13 07:02:50 -07:00
parent 09cbf97f3a
commit a94eb4084d

View File

@@ -4617,11 +4617,11 @@ return $html;
class e_emotefilter
{
private $search;
private $replace;
private $search = array();
private $replace = array();
public $emotes;
private $singleSearch;
private $singleReplace;
private $singleSearch = array();
private $singleReplace = array();
function __construct()
{
@@ -4733,7 +4733,7 @@ class e_emotefilter
return '';
}
if((strlen($text) < 12) && in_array($text, $this->singleSearch)) // just one emoticon with no space, line-break or html tags around it.
if(!empty($this->singleSearch) && (strlen($text) < 12) && in_array($text, $this->singleSearch)) // just one emoticon with no space, line-break or html tags around it.
{
return str_replace($this->singleSearch,$this->singleReplace,$text);
}