includes/comment.php
changeset 1221 d8c6b8d49604
parent 1216 4125e19d3b27
child 1223 7dca925b0209
--- a/includes/comment.php	Mon Feb 08 17:04:08 2010 -0500
+++ b/includes/comment.php	Mon Feb 08 17:04:43 2010 -0500
@@ -456,8 +456,8 @@
         $name = $db->escape($name);
         $username = $db->escape($session->username);
         // log this action
-        $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs(time_id, log_type, action, page_text, author, edit_summary) VALUES\n  "
-                            . "( " . time() . ", 'security', 'view_comment_ip', '$name', '$username', '{$_SERVER['REMOTE_ADDR']}' );");
+        $q = $db->sql_query('INSERT INTO ' . table_prefix . "logs(time_id, log_type, action, page_text, author, author_uid, edit_summary) VALUES\n  "
+                            . "( " . time() . ", 'security', 'view_comment_ip', '$name', '$username', $session->user_id, '{$_SERVER['REMOTE_ADDR']}' );");
         if ( !$q )
           $db->die_json();