Closed (fixed)
Project:
Printer, email and PDF versions
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2013 at 07:55 UTC
Updated:
12 Jul 2013 at 10:11 UTC
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
Comment #1
jcnventuraThanks for the fix.
Pushed to git.