When I use the module I now and then get the following message in the log:

Undefined variable: block in print_block_view()

The reason is that if the $block variable is not defined if something else is calling hook_block_view(). The fix is easy:

--- print.module.orig   2013-06-24 09:37:53.333706000 +0200
+++ print.module        2013-06-24 09:34:41.894069000 +0200
@@ -263,6 +263,7 @@
  * Implements hook_block_view().
  */
 function print_block_view($delta = '') {
+  $block = array();
   switch ($delta) {
     case 'print-links':
       $nid = preg_replace('!^node/!', '', $_GET['q']);

BR

/Thomas

Comments

jcnventura’s picture

Status: Needs review » Fixed

Thanks for the fix.

Pushed to git.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.