Not Reviewed
Show More
Add another comment
| @@ -27,7 +27,7 function adminlog($msg, $section, $action, $level=E_USER_NOTICE, $email=false) | |||||
|
|
27 |
|
27 | ||
|
|
28 | $sql = 'INSERT INTO admin_log (contributor, section, action, level, message) VALUES (?, ?, ?, ?, ?)'; |
|
28 | $sql = 'INSERT INTO admin_log (contributor, section, action, level, message) VALUES (?, ?, ?, ?, ?)'; |
|
|
29 | $stmt = $dbConnection->prepare($sql); |
|
29 | $stmt = $dbConnection->prepare($sql); |
|
|
30 |
$stmt->bindValue(1, is_numeric($currentuser->id) ? $currentuser->id : |
|
30 | $stmt->bindValue(1, is_numeric($currentuser->id) ? $currentuser->id : NULL); |
|
|
31 | $stmt->bindValue(2, $section); |
|
31 | $stmt->bindValue(2, $section); |
|
|
32 | $stmt->bindValue(3, $action); |
|
32 | $stmt->bindValue(3, $action); |
|
|
33 | $stmt->bindValue(4, $level); |
|
33 | $stmt->bindValue(4, $level); |
Comments 0
You need to be logged in to leave comments.
Login now
