Compatibility with PHP 5.4
This commit is contained in:
parent
ff0127e5f5
commit
3251330c4c
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
|
|||
switch ($op) {
|
||||
case 'page':
|
||||
// Build breadcrumb based on first hierarchy of first term:
|
||||
$current = new stdClass();
|
||||
$current->tid = $tids[0];
|
||||
$breadcrumb = array();
|
||||
while ($parents = taxonomy_get_parents($current->tid)) {
|
||||
|
|
Reference in a new issue