Index: socialshareprivacy.module
===================================================================
--- socialshareprivacy.module	(revision 5278)
+++ socialshareprivacy.module	(working copy)
@@ -189,37 +189,44 @@
     }
     return "";
 }
+
 function socialshareprivacy_block($op = 'list', $delta = 0, $edit = array()) {
-    $block = array();
-    if ($op == 'list') {
-        $block[0]['info'] = t('Social share privacy');
-    } elseif ($op == 'view') {
-        $match = FALSE;
-        $cta = socialshareprivacy_get_enabled_content_types();
-        if (arg(0) == 'node' && is_numeric(arg(1))) {
-            $nid = arg(1);
-            $node = node_load(array('nid' => $nid));
-            $type = $node->type;
-            if (array_key_exists($type, $cta)) {
-                $match = TRUE;
-            }
+  switch ($op) {
+    case 'list':
+      $block[0] = array(
+        'info' => t('Social share privacy'),
+        'cache' => BLOCK_NO_CACHE,
+      );
+      return $block;
+
+    case 'view':
+      $block = array();
+      $match = FALSE;
+      $cta = socialshareprivacy_get_enabled_content_types();
+      if (arg(0) == 'node' && is_numeric(arg(1))) {
+          $nid = arg(1);
+          $node = node_load(array('nid' => $nid));
+          $type = $node->type;
+          if (array_key_exists($type, $cta)) {
+              $match = TRUE;
+          }
+      }
+      if (empty ($cta) || $match == TRUE) {
+        $jqpath = variable_get('socialshareprivacy_jqpath','');
+        if (!file_exists($jqpath))
+        {
+            // TODO: issue warning
+            drupal_set_message("No jQuery for social share privacy", "error");
+            return $block;
         }
-        if (empty ($cta) || $match == TRUE) {
-            $jqpath = variable_get('socialshareprivacy_jqpath','');
-            if (!file_exists($jqpath))
-            {
-                // TODO: issue warning
-                drupal_set_message("No jQuery for social share privacy", "error");
-                return;
-            }
-
-            $library_path = socialshareprivacy_get_path();
-            $rpath = base_path() . $library_path; // Ressources path for browser
-
-            $block['subject'] = t('Social share privacy');
-            $block['content'] = '<div id="socialshareprivacy"></div>';
+
+        $library_path = socialshareprivacy_get_path();
+        $rpath = base_path() . $library_path; // Ressources path for browser
+
+        $block['subject'] = t('Social share privacy');
+        $block['content'] = '<div id="socialshareprivacy"></div>';

-            $options = "{
+        $options = "{
         services : {
             facebook : {
                 'status' : '" . _socialshareprivacy_servicestatus("facebook") . "',
@@ -239,18 +246,18 @@
         },
         'css_path': '$rpath/socialshareprivacy/socialshareprivacy.css'
         }";
-            // Load and activate an additional jquery
-            $nc = variable_get('socialshareprivacy_jqloadmode', 'jqnc1') == 'jqnc1' ? "true" : "";
-            drupal_add_js($jqpath, 'module', 'footer', FALSE, TRUE, FALSE);
-            drupal_add_js('var sspjq = jQuery.noConflict(' . $nc . ');', 'inline', 'footer', FALSE, FALSE, FALSE);
-
-            // Load the jquery plugin and activate it
-            drupal_add_js($library_path . '/jquery.socialshareprivacy.js', 'module', 'footer', FALSE, TRUE, FALSE);
-            drupal_add_js('sspjq(document).ready(function () { if(sspjq("#socialshareprivacy").length > 0){sspjq("#socialshareprivacy").socialSharePrivacy(' . $options . ');' . _socialshareprivacy_external_link() . ' } });', 'inline', 'footer', FALSE, FALSE, FALSE);
-        }
+        // Load and activate an additional jquery
+        $nc = variable_get('socialshareprivacy_jqloadmode', 'jqnc1') == 'jqnc1' ? "true" : "";
+        drupal_add_js($jqpath, 'module', 'footer', FALSE, TRUE, FALSE);
+        drupal_add_js('var sspjq = jQuery.noConflict(' . $nc . ');', 'inline', 'footer', FALSE, FALSE, FALSE);
+
+        // Load the jquery plugin and activate it
+        drupal_add_js($library_path . '/jquery.socialshareprivacy.js', 'module', 'footer', FALSE, TRUE, FALSE);
+        drupal_add_js('sspjq(document).ready(function () { if(sspjq("#socialshareprivacy").length > 0){sspjq("#socialshareprivacy").socialSharePrivacy(' . $options . ');' . _socialshareprivacy_external_link() . ' } });', 'inline', 'footer', FALSE, FALSE, FALSE);
+        return $block;
+      }
     }

-    return $block;
 }

 /**
