diff --git a/include/error.php b/include/error.php index b9ad7d3..aa433f7 100644 --- a/include/error.php +++ b/include/error.php @@ -27,7 +27,7 @@ function adminlog($msg, $section, $action, $level=E_USER_NOTICE, $email=false) $sql = 'INSERT INTO admin_log (contributor, section, action, level, message) VALUES (?, ?, ?, ?, ?)'; $stmt = $dbConnection->prepare($sql); - $stmt->bindValue(1, is_numeric($currentuser->id) ? $currentuser->id : 'NULL'); + $stmt->bindValue(1, is_numeric($currentuser->id) ? $currentuser->id : NULL); $stmt->bindValue(2, $section); $stmt->bindValue(3, $action); $stmt->bindValue(4, $level);