Commit a529b1bd authored by jcnventura's avatar jcnventura

Issue #1619164 by Norberto Ostallo: fix undefined index: #print_format in print_preprocess_node().

parent 026eda10
......@@ -114,7 +114,7 @@ function print_theme() {
* Implements hook_preprocess_HOOK().
*/
function print_preprocess_node(&$variables) {
if ($variables['elements']['#view_mode'] == 'print') {
if (($variables['elements']['#view_mode'] == 'print') && isset($variables['elements']['#print_format'])) {
$type = $variables['elements']['#node']->type;
$format = $variables['elements']['#print_format'];
$nid = $variables['elements']['#node']->nid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment