projects
/
atutor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bccd154
)
http://www.atutor.ca/atutor/mantis/view.php?id=2584
author
joel kronenberg
<joel.kronenberg@utoronto.ca>
Wed, 28 Jun 2006 14:42:58 +0000
(14:42 -0000)
committer
joel kronenberg
<joel.kronenberg@utoronto.ca>
Wed, 28 Jun 2006 14:42:58 +0000
(14:42 -0000)
docs/blogs/post.php
patch
|
blob
|
history
diff --git
a/docs/blogs/post.php
b/docs/blogs/post.php
index
cb8a261
..
bfd2753
100644
(file)
--- a/
docs/blogs/post.php
+++ b/
docs/blogs/post.php
@@
-45,7
+45,7
@@
if (isset($_POST['submit']) && $_SESSION['member_id']) {
$sql = "INSERT INTO ".TABLE_PREFIX."blog_posts_comments VALUES (0, $id, $_SESSION[member_id], NOW(), $_POST[private], '$_POST[body]')";
\r
mysql_query($sql, $db);
\r
if (mysql_affected_rows($db) == 1) {
\r
- $sql = "UPDATE ".TABLE_PREFIX."blog_posts SET num_comments=num_comments+1 WHERE id=$id";
\r
+ $sql = "UPDATE ".TABLE_PREFIX."blog_posts SET num_comments=num_comments+1 WHERE
post_
id=$id";
\r
mysql_query($sql, $db);
\r
}
\r
\r