Compatibility with PHP 5.4

This commit is contained in:
Manuel Cillero 2017-07-26 09:30:09 +02:00
parent ff0127e5f5
commit 3251330c4c

View file

@ -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)) {