diff --git a/entityform.module b/entityform.module
index c1435fe..56fd388 100644
--- a/entityform.module
+++ b/entityform.module
@@ -274,7 +274,10 @@ function entityform_access($op, $entityform = NULL, $account = NULL) {
     }
     else {
       //confirm page
-      $entityform_id = $_GET['entityform_id'];
+      $entityform_id = isset($_GET['entityform_id']) ? $_GET['entityform_id'] : NULL;
+      if (empty($entityform_id)) {
+        return FALSE;
+      }
       if (user_is_anonymous()) {
         // If this is anonymous user then entityform_id should be stored in session
         if (!isset($_SESSION['entityform_submission'])) {
