diff --git a/captcha.inc b/captcha.inc index 86b6a00..f19cef4 100644 --- a/captcha.inc +++ b/captcha.inc @@ -109,7 +109,7 @@ function _captcha_generate_captcha_session($form_id=NULL, $status=CAPTCHA_STATUS // Insert an entry and thankfully receive the value of the autoincrement field 'csid'. $captcha_sid = db_insert('captcha_sessions') ->fields(array( - 'uid' => $user->uid, + 'uid' => $user->id(), 'sid' => session_id(), 'ip_address' => Drupal::request()->getClientIp(), 'timestamp' => REQUEST_TIME,