diff --git a/print_pdf/print_pdf.module b/print_pdf/print_pdf.module index 0cdff67..e804012 100644 --- a/print_pdf/print_pdf.module +++ b/print_pdf/print_pdf.module @@ -271,6 +271,12 @@ function print_pdf_requirements($phase) { * Implements hook_node_load(). */ function print_pdf_node_load($nodes, $types) { + if (!db_field_exists('print_pdf_node_conf', 'size')) { + // The size field is added in print_pdf_update_7203(). If any other update + // hooks do a node_load() before this, return to prevent a database error. + return; + } + $ids = array(); foreach ($nodes as $node) { $ids[] = $node->nid;