By hickimse on
Use d7
I'm trying to do curent node page Show block only node author
Pages on which this PHP code returns TRUE (experts only)
I use
<?php
global $user;
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load(array('nid' => $nid));
return ($user->uid == $node->uid);
}
?>My code works but has error why ?
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 173 of
What should I use to correct code
Comments
This:
This:
Should be this:
Contact me to contract me for D7 -> D10/11 migrations.