Download & Extend

Undefined property in nodeblock_preprocess_node()

Project:Node Blocks
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

I'm getting a warning:
Notice: Undefined property: stdClass::$nodeblock in nodeblock_preprocess_node() (line 194 of /Users/kim/dev/servcorp/pressflow/sites/all/modules/contrib/nodeblock/nodeblock.module).

changing from:

<?php
if ($variables['node']->nodeblock) {
?>

to
<?php
if (isset($variables['node']->nodeblock)) {
?>

Fixes the problem.
Kim

Comments

#1

Here is a patch containing the above mentioned solution.

AttachmentSize
nodeblock972998.patch 937 bytes

#2

Status:active» reviewed & tested by the community

Working well in production

#3

Subscribe.

#4

+1, patch is good.