diff --git a/Sources/VisualWarning.php b/Sources/VisualWarning.php index 97c0f12..ae243de 100644 --- a/Sources/VisualWarning.php +++ b/Sources/VisualWarning.php @@ -94,6 +94,7 @@ function AddWarning2() $_REQUEST['level'] = isset($_REQUEST['level']) ? (int) $_REQUEST['level'] : 0; $_REQUEST['msg'] = isset($_REQUEST['msg']) ? (int) $_REQUEST['msg'] : 0; + $_REQUEST['topic'] = isset($_REQUEST['topic']) ? (int) $_REQUEST['topic'] : 0; $_REQUEST['user'] = isset($_REQUEST['user']) ? (int) $_REQUEST['user'] : 0; $_REQUEST['timelast'] = isset($_REQUEST['timelast']) ? (int) $_REQUEST['timelast'] : 0; @@ -106,7 +107,16 @@ function AddWarning2() preparsecode($message); // update moderation log - logAction("vwarning", array('member' => $_REQUEST['user'], 'level' => $_REQUEST['level'], 'message' => $message)); + logAction( + "vwarning", + array( + 'member' => $_REQUEST['user'], + 'level' => $_REQUEST['level'], + 'topic' => $_REQUEST['topic'], + 'message' => $_REQUEST['msg'], + 'warnmessage' => $message + ) + ); $request = db_query(" SELECT ID_MEMBER, memberName, warning, emailAddress