diff --git a/record.inc b/record.inc
index 57d709e..43e2674 100644
--- a/record.inc
+++ b/record.inc
@@ -42,7 +42,7 @@ function _record_user_agent($skip_futher_recording = FALSE, $bypass_monitoring =
     // Determine if the user agent is a crawler using browscap data
     // Otherwise, assume that the user agent isn't a crawler
     if (!empty($user_agent['crawler'])) {
-      $is_crawler = check_plain(trim($user_agent['crawler']));
+      $user_agent_crawler = check_plain(trim($user_agent['crawler'])) ? 1 : 0;
     }
 
     // Record the user agent in the database
