I upgraded to 4.7 over the weekend, including refactoring some of the modules I had written.
One is for a module about procedures, it has a _block function in it. The overall module works, but when I use the block I get this error on the "create content" pages. I suspect this is a bug in my code - since other blocks are setup and not throwing this.
warning: implode(): Bad arguments. in /home/vividselfadmin/public_html/modules/node.module on line 363.
user warning: You have an error in your SQL syntax near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.moderate, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/vividselfadmin/public_html/includes/database.mysql.inc on line 124.
Full Block code is:
<?php
/**
* Sidebar block for procedure, with callout info
*/
function procedure_block($op='list', $delta=0) {
// listing of blocks, such as on the admin/block page
if ($op == "list") {
$block[0]["info"] = t("Procedure Sidebar");
return $block;
} else if ($op == 'view') {
$node = node_load(arg(1)); //get the current page node info
if ($node->type != 'procedure') {
return;
}