From b5f783823b2f48a9b689081638f01dbf25e9c314 Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 18 May 2015 17:36:11 +0000 Subject: [PATCH] fixed chat (sql now returns NULL for max(id) instead of 0) and parseStringCritical (handover NULL) --- ag/ag_popupchat.php | 2 +- ag/include/parse.inc.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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); }