includes/comment.php
changeset 1216 4125e19d3b27
parent 1173 b5b8e7ab0914
child 1223 7dca925b0209
--- a/includes/comment.php	Mon Feb 01 02:14:02 2010 -0500
+++ b/includes/comment.php	Mon Feb 01 02:15:04 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();