diff --git a/ag/ag_popupchat.php b/ag/ag_popupchat.php index 84285c3..ec05226 100644 --- a/ag/ag_popupchat.php +++ b/ag/ag_popupchat.php @@ -203,4 +203,4 @@ if (isset($_GET['send'])) { \ No newline at end of file +?> diff --git a/ag/include/parse.inc.php b/ag/include/parse.inc.php index dbe9568..a2e6cb0 100644 --- a/ag/include/parse.inc.php +++ b/ag/include/parse.inc.php @@ -303,6 +303,9 @@ function validateStringArray($value){ } function validateStringCritical($value) { + if($value == null) { + return null; + } $value = validateString($value); return preg_replace('#[()\]\[\s]#', '', $value); }