summaryrefslogtreecommitdiff
path: root/inc/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-30 16:56:26 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-30 16:56:26 +1100
commit44aeb4d97d472a12669a6f686c7011e1e71e446b (patch)
treef8d34614b3857e5d9b3f70421ddd2f5516bbb6c9 /inc/mod.php
parent38e99d16aa80ce4f1f8056ce0511f8802be17eed (diff)
Show board in modlog on report dismissing
Diffstat (limited to 'inc/mod.php')
-rw-r--r--inc/mod.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/mod.php b/inc/mod.php
index bce9e206..77c3960c 100644
--- a/inc/mod.php
+++ b/inc/mod.php
@@ -73,14 +73,16 @@
return false;
}
- function modLog($action) {
+ function modLog($action, $_board=null) {
global $mod, $board;
$query = prepare("INSERT INTO `modlogs` VALUES (:id, :ip, :board, :time, :text)");
$query->bindValue(':id', $mod['id'], PDO::PARAM_INT);
$query->bindValue(':ip', $_SERVER['REMOTE_ADDR']);
$query->bindValue(':time', time(), PDO::PARAM_INT);
$query->bindValue(':text', $action);
- if(isset($board))
+ if(isset($_board))
+ $query->bindValue(':board', $_board);
+ elseif(isset($board))
$query->bindValue(':board', $board['id']);
else
$query->bindValue(':board', null, PDO::PARAM_NULL);