diff --git a/views_plugin_display_block.inc b/views_plugin_display_block.inc
index 275f5f4..8604111 100644
--- a/views_plugin_display_block.inc
+++ b/views_plugin_display_block.inc
@@ -74,28 +74,30 @@ class views_plugin_display_block extends views_plugin_display {
       ),
     );
 
-    $block_description = strip_tags($this->get_option('block_description'));
-    if (empty($block_description)) {
-      $block_description = t('None');
-    }
+    if (module_exists('block')){ 
+      $block_description = strip_tags($this->get_option('block_description'));
+      if (empty($block_description)) {
+        $block_description = t('None');
+      }
 
-    $options['block_description'] = array(
-      'category' => 'block',
-      'title' => t('Block name'),
-      'value' => views_ui_truncate($block_description, 24),
-    );
+      $options['block_description'] = array(
+        'category' => 'block',
+        'title' => t('Block name'),
+        'value' => views_ui_truncate($block_description, 24),
+      );
 
-    $cache_type = $this->get_option('block_caching');
-    if (empty($cache_type)) {
-      $cache_type = DRUPAL_NO_CACHE;
-    }
+      $cache_type = $this->get_option('block_caching');
+      if (empty($cache_type)) {
+        $cache_type = DRUPAL_NO_CACHE;
+      }
 
-    $types = $this->block_caching_modes();
-    $options['block_caching'] = array(
-      'category' => 'other',
-      'title' => t('Block caching'),
-      'value' => $types[$this->get_cache_type()],
-    );
+      $types = $this->block_caching_modes();
+      $options['block_caching'] = array(
+        'category' => 'other',
+        'title' => t('Block caching'),
+        'value' => $types[$this->get_cache_type()],
+      );
+    }
   }
 
   /**
@@ -190,18 +192,20 @@ class views_plugin_display_block extends views_plugin_display {
    * Update the block delta when you change the machine readable name of the display.
    */
   function update_block_bid($name, $old_delta, $delta) {
-    $old_delta = $name . '-' . $old_delta;
-    $delta = $name . '-' . $delta;
-    if (strlen($old_delta) >= 32) {
-      $old_delta = md5($old_delta);
-    }
-    if (strlen($delta) >= 32) {
-      $delta = md5($delta);
+    if (module_exists('block')){
+      $old_delta = $name . '-' . $old_delta;
+      $delta = $name . '-' . $delta;
+      if (strlen($old_delta) >= 32) {
+        $old_delta = md5($old_delta);
+      }
+      if (strlen($delta) >= 32) {
+        $delta = md5($delta);
+      }
+      db_update('block')
+        ->fields(array('delta' => $delta))
+        ->condition('delta', $old_delta)
+        ->execute();
     }
-    db_update('block')
-      ->fields(array('delta' => $delta))
-      ->condition('delta', $old_delta)
-      ->execute();
   }
   /**
    * Save the block cache setting in the blocks table if this block allready
