From d05712a7ceeaccb060212fa4d81c67b619899180 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sat, 9 Feb 2013 14:19:59 -0800 Subject: Chat supporting 50 messages, - also no blank-messages. --- includes/chats.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/chats.php b/includes/chats.php index 4ecf6ce..6a36fe3 100644 --- a/includes/chats.php +++ b/includes/chats.php @@ -4,11 +4,13 @@ */ include_once('sqli.php'); -define('CHAT_ROWS_TO_KEEP', 30); +define('CHAT_ROWS_TO_KEEP', 50); function addChat($userID, $message) { global $mysqli; + if ($message == '') + return; $stmt = $mysqli->prepare("INSERT INTO `chat` (`userID`, `message`) -- cgit v1.2.3