diff --git a/publishcontent.module b/publishcontent.module
index 947135e..be5e1e2 100644
--- a/publishcontent.module
+++ b/publishcontent.module
@@ -183,13 +183,18 @@ function publishcontent_publishcontent_publish_access($node, $user) {
  *   TRUE if the user has unpublish rights to the node.
  */
 function publishcontent_unpublish_access($node, $account = NULL) {
+  $access = FALSE;
+
+  // Variable may be '0' or '1' or not set.
+  if (!variable_get('publishcontent_' . $node->type, FALSE)) {
+    return $access;
+  }
+
   if (empty($account)) {
     global $user;
     $account = $user;
   }
 
-  $access = FALSE;
-
   foreach (module_invoke_all('publishcontent_unpublish_access', $node, $account) as $module_access) {
     if (!is_null($module_access)) {
       if ($module_access === PUBLISHCONTENT_ACCESS_DENY) {
