diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-29 19:50:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-29 19:50:31 +0000 |
commit | 04ad9b8af902385be50011360da2a2dc9b9785be (patch) | |
tree | ed748dd5256076bdaafe7474ca1287acc515e5ae /includes/comment.inc | |
parent | 57eb908a8fe4e4d1ae7b9021c34903ef7267481d (diff) | |
download | brdo-04ad9b8af902385be50011360da2a2dc9b9785be.tar.gz brdo-04ad9b8af902385be50011360da2a2dc9b9785be.tar.bz2 |
- fixed issue depricated call-by-reference issues
- fixed small visual glitch in includes/function.inc
- changed SQL tables around a bit to be more consistent
(result: small changes to a lot of different files)
- improved robustness of includes/node.inc
- improved output of cron.module
- improved output of node.php
Diffstat (limited to 'includes/comment.inc')
-rw-r--r-- | includes/comment.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/comment.inc b/includes/comment.inc index c775be98f..57b87583b 100644 --- a/includes/comment.inc +++ b/includes/comment.inc @@ -128,14 +128,14 @@ function comment_post($pid, $id, $subject, $comment) { $duplicate = db_result(db_query("SELECT COUNT(cid) FROM comments WHERE pid = '$pid' AND lid = '$id' AND subject = '$subject' AND comment = '$comment'"), 0); if ($duplicate != 0) { - watchdog("error", "comment: attempt to insert duplicate comment"); + watchdog("warning", "comment: duplicate '$subject'"); } else { // Validate subject: $subject = ($subject) ? $subject : substr($comment, 0, 29); // Add watchdog entry: - watchdog("comment", "comment: added comment with subject '$subject'"); + watchdog("comment", "comment: added '$subject'"); // Add comment to database: db_query("INSERT INTO comments (lid, pid, author, subject, comment, hostname, timestamp, score) VALUES ('$id', '$pid', '$user->id', '$subject', '$comment', '". getenv("REMOTE_ADDR") ."', '". time() ."', '". ($user->userid ? 1 : 0) ."')"); |