Validate path before loading node from arg(1)
Bug #444914 reported by
Pierre Buyle
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UD Header |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In udheader_
if(arg(0) == 'node' && ($nid = arg(1)) && is_numeric($nid) && ($node = node_load($nid))) {
//Ok, we have a node
} else {
//Use udheader_default
}
Related branches
Changed in ubuntu-drupal-header: | |
status: | Incomplete → In Progress |
To post a comment you must log in.
Could you please tell me where this should be used? I'm not sure where the block shouldn't be shown.