diff --git a/template.php b/template.php index c20549b21aff34026abb7ebb467d7e5bd93717b4..edcb36b190cc49268fa1d1b6338562a3d02066a2 100644 --- a/template.php +++ b/template.php @@ -306,6 +306,9 @@ function zen_preprocess_node(&$variables, $hook) { // Add $unpublished variable. $variables['unpublished'] = (!$variables['status']) ? TRUE : FALSE; + // Set preview variable to FALSE if it doesn't exist. + $variables['preview'] = isset($variables['preview']) ? $variables['preview'] : FALSE; + // Add pubdate to submitted variable. $variables['pubdate'] = ''; if ($variables['display_submitted']) {