Index: authenticate.module
===================================================================
--- authenticate.module	(revision 2049)
+++ authenticate.module	(working copy)
@@ -8,7 +8,7 @@
 else define('AUTH_PAGE_REFRESH', 10);
 
 // add action include for sending mail when report completed
-if (module_exists('actions')) include_once(drupal_get_path('module', 'authenticate') ."/auth_actions.inc");
+if (module_exists('actions') && _authenticate_check_actions_v1()) include_once(drupal_get_path('module', 'authenticate') ."/auth_actions.inc");
 
 /**
  * Implementation of hook_help().
@@ -337,7 +337,7 @@
   //    - precanned: email to user who initiated the search
   //    - and others that are created as actions
   // template of precanned and adding new ones can be done at /admin/build/actions
-  if (module_exists('actions')) {
+  if (module_exists('actions') && _authenticate_check_actions_v1()) {
     $result = db_query("SELECT aid FROM {actions} WHERE func LIKE '%s'", 'action_auth_%');
     while ($action = db_fetch_object($result)) $action_ids[] = $action->aid; 
     if ($action_ids) actions_do($action_ids, $node);   
@@ -649,3 +649,10 @@
     or see the results if they are available. An email will also be sent to the user who submitted the document once the results are available.</p>');
 }
 
+function _authenticate_check_actions_v1() {
+  $results = db_query("show columns from {actions}");
+  while ($row = db_fetch_object($results)) $fields[] = $row->Field;
+  
+  if (in_array("func", $fields)) return true; 
+  else return false;
+}
\ No newline at end of file
