Use the following code to reference a NID from within a block.
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
}
Use the following code to reference a NID from within a block.
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
}