summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-02-09 14:19:59 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-02-09 14:19:59 -0800
commitd05712a7ceeaccb060212fa4d81c67b619899180 (patch)
tree5ce76a3bc5a0c4e50346c85af0a9595acc100b8b /includes
parent25f12df52709d0965c7ef3260798d7b8055d97af (diff)
downloadpathery-d05712a7ceeaccb060212fa4d81c67b619899180.tar.xz
Chat supporting 50 messages, - also no blank-messages.
Diffstat (limited to 'includes')
-rw-r--r--includes/chats.php4
1 files changed, 3 insertions, 1 deletions
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`)