Got this when visiting the node's block's node list:
Strict warning: Only variables should be passed by reference in nodesinblock_nodequeue() (line 301 of /path/to/drupal7/sites/all/modules/nodesinblock/nodesinblock.module).

CommentFileSizeAuthor
#1 nodesinblock-349507-1.patch547 bytessumwai

Comments

sumwai’s picture

StatusFileSize
new547 bytes

Solve the strict warning by storing the result of drupal_get_form() into a varible first

swentel’s picture

Status: Active » Fixed

Thanks, committed and pushed!

Status: Fixed » Closed (fixed)

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

upunkt’s picture

Version: 7.x-1.x-dev » 7.x-1.0

Reopened since this bug exists also in the 1.0 release.

If you can't use the patch do the following:
Open the .module-file
Replace the code around line 302 as follows (you can leave out the comments):

function nodesinblock_nodequeue($node) {
  module_load_include('inc', 'nodesinblock', 'nodesinblock.admin');
	// return drupal_render(drupal_get_form('nodesinblock_queue', $node->nodesinblock, FALSE, FALSE));
	// The line above is replaced by the two lines below
  $nib_thisform = drupal_get_form('nodesinblock_queue', $node->nodesinblock, FALSE, FALSE);
	return drupal_render($nib_thisform);
}