diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 14:19:59 -0800 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-02-09 14:19:59 -0800 |
commit | d05712a7ceeaccb060212fa4d81c67b619899180 (patch) | |
tree | 5ce76a3bc5a0c4e50346c85af0a9595acc100b8b /includes/chats.php | |
parent | 25f12df52709d0965c7ef3260798d7b8055d97af (diff) | |
download | pathery-d05712a7ceeaccb060212fa4d81c67b619899180.tar.xz |
Chat supporting 50 messages, - also no blank-messages.
Diffstat (limited to 'includes/chats.php')
-rw-r--r-- | includes/chats.php | 4 |
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`)
|