--- ajax_checklist.module.orig	2008-11-16 03:05:08.000000000 -0700
+++ ajax_checklist.module	2010-01-02 16:35:23.000000000 -0700
@@ -53,10 +53,10 @@ function ajax_checklist_loadnid ($nid) {
   $dcvals = array();
   // any checkbox id that starts with user- we remember the current user's settings
   // any other id is global and we use user=0
-  $result=db_query("select qid,state from ajax_checklist ".
+  $result=db_query("select qid,state from {ajax_checklist} ".
                    " where nid=%d and qid not like 'user-%' and user=0 ".
                    " union ".
-                   "select qid,state from ajax_checklist ".
+                   "select qid,state from {ajax_checklist} ".
                    "where nid=%d and qid like 'user-%' and user=%d ",$nid,$nid,$uid);
   while ($data=db_fetch_object($result)) {
     $dcvals[] = array (qid => $data->qid, state => $data->state, access => $access);
@@ -74,16 +74,16 @@ function ajax_checklist_save ($nid,$qid,
     $uid=0;
   }
 
-  $existing=db_result(db_query("select count(state) from ajax_checklist ".
+  $existing=db_result(db_query("select count(state) from {ajax_checklist} ".
                                "where nid=%d and user=%d and qid='%s'",$nid,$uid,$qid));
   if ($existing == 0) {
-    db_query("insert into ajax_checklist (nid,user,qid,state) ".
+    db_query("insert into {ajax_checklist} (nid,user,qid,state) ".
              "values (%d,%d,'%s',%d)",$nid,$uid,$qid,$state);
   } elseif ( $current != $state ) {
-    $current=db_result(db_query("select state from ajax_checklist ".
+    $current=db_result(db_query("select state from {ajax_checklist} ".
                                 " where nid=%d and user=%d and qid='%s'",$nid,$uid,$qid));
     if ($current != $state) {
-      db_query("update ajax_checklist ".
+      db_query("update {ajax_checklist} ".
                "set state=%d where nid=%d and user=%d and qid='%s'",$state,$nid,$uid,$qid);
     }
   }
