diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-06-19 20:40:29 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-06-19 20:40:29 +0000 |
commit | aa443a868dd1c908731fbb076859bfe6b5b2ba16 (patch) | |
tree | 0dda0f81292c71da4c1cd1a165524605642d3fb4 /phpBB/includes/mcp | |
parent | ac3f3b1ae94f8a820063fc816500dc2eb9a603b2 (diff) | |
download | forums-aa443a868dd1c908731fbb076859bfe6b5b2ba16.tar forums-aa443a868dd1c908731fbb076859bfe6b5b2ba16.tar.gz forums-aa443a868dd1c908731fbb076859bfe6b5b2ba16.tar.bz2 forums-aa443a868dd1c908731fbb076859bfe6b5b2ba16.tar.xz forums-aa443a868dd1c908731fbb076859bfe6b5b2ba16.zip |
Deleting logs
git-svn-id: file:///svn/phpbb/trunk@6101 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp')
-rwxr-xr-x | phpBB/includes/mcp/mcp_logs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_logs.php b/phpBB/includes/mcp/mcp_logs.php index 2850505e66..df7236b974 100755 --- a/phpBB/includes/mcp/mcp_logs.php +++ b/phpBB/includes/mcp/mcp_logs.php @@ -43,8 +43,8 @@ class mcp_logs // Set up general vars $start = request_var('start', 0); - $deletemark = (isset($_POST['del_marked'])) ? true : false; - $deleteall = (isset($_POST['del_all'])) ? true : false; + $deletemark = ($action == 'del_marked') ? true : false; + $deleteall = ($action == 'del_all') ? true : false; $marked = request_var('mark', array(0)); // Sort keys @@ -91,7 +91,7 @@ class mcp_logs if ($where_sql || $deleteall) { $sql = 'DELETE FROM ' . LOG_TABLE . ' - WHERE log_type = ' . LOD_MOD . " + WHERE log_type = ' . LOG_MOD . " $where_sql"; $db->sql_query($sql); |