Posted by scito on November 10, 2011 at 9:48pm
4 followers
| Project: | Custom Breadcrumbs |
| Version: | 7.x-2.x-dev |
| Component: | custom_breadcrumbs_paths |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Strict warning: Only variables should be passed by reference in custom_breadcrumbs_paths_form() (Line 274 of .../modules/custom_breadcrumbs/custom_breadcrumbs_paths/custom_breadcrumbs_paths.module).
I'm using PHP 5.3.8.
Comments
#1
Same here..
#2
Same here too. This is happening when I set a Custom Breadcrumb for Path with a php callback like :
<?phpreturn my_custom_function();
?>
#3
At line 272 in custom_breadcrumbs_paths.module change as follow (notice the s behind $breadcrumb(s) !)
Original:
if (isset($bid)) {
drupal_set_title(t('Edit Custom Breadcrumb for Path'));
$breadcrumb = array_pop(custom_breadcrumbs_load_breadcrumbs('custom_breadcrumbs_paths', NULL, array('bid' => $bid)));
}
Fix:
if (isset($bid)) {
drupal_set_title(t('Edit Custom Breadcrumb for Path'));
$breadcrumbs = custom_breadcrumbs_load_breadcrumbs('custom_breadcrumbs_paths', NULL, array('bid' => $bid));
$breadcrumb = array_pop($breadcrumbs);
}
Or replace it by using the uploaded file here.
It's just that simple ;)