Index: apachesolr.index.inc
===================================================================
--- apachesolr.index.inc	(revision 986)
+++ apachesolr.index.inc	(working copy)
@@ -301,6 +301,11 @@
   if (empty($nodes)) {
     return TRUE;
   }
+  
+  if (variable_get('apachesolr_read_only', APACHESOLR_READ_WRITE) == APACHESOLR_READ_ONLY) {
+    return TRUE;
+  }
+  
   $published_ids = array();
   $unpublished_ids = array();
   foreach ($nodes as $node) {
@@ -336,6 +341,11 @@
   if (empty($nodes)) {
     return TRUE;
   }
+
+  if (variable_get('apachesolr_read_only', APACHESOLR_READ_WRITE) == APACHESOLR_READ_ONLY) {
+    return TRUE;
+  }
+
   $ids = array();
   $nids = array();
   foreach ($nodes as $node) {
Index: apachesolr.module
===================================================================
--- apachesolr.module	(revision 1031)
+++ apachesolr.module	(working copy)
@@ -384,7 +384,7 @@
  */
 function apachesolr_get_nodes_to_index($namespace, $limit) {
   $rows = array();
-  if (variable_get('apachesolr_read_only', 0)) {
+  if (variable_get('apachesolr_read_only', APACHESOLR_READ_WRITE) == APACHESOLR_READ_ONLY) {
     return $rows;
   }
   list($excluded_types, $args, $join_sql, $exclude_sql) = _apachesolr_exclude_types($namespace);
Index: apachesolr_search.module
===================================================================
--- apachesolr_search.module	(revision 1031)
+++ apachesolr_search.module	(working copy)
@@ -13,7 +13,7 @@
 function apachesolr_search_help($section) {
   switch ($section) {
     case 'admin/settings/apachesolr/index':
-      if (variable_get('apachesolr_read_only', 0)) {
+      if (variable_get('apachesolr_read_only', APACHESOLR_READ_WRITE) == APACHESOLR_READ_ONLY) {
         return t('Operating in read-only mode; updates are disabled.');
       }
       $remaining = 0;
