fixed bug in id2name

This commit is contained in:
Ralf Becker 2003-12-23 22:24:55 +00:00
parent 960d5411e7
commit 5f91c1c62c

View File

@ -676,7 +676,7 @@
if ($values['parent'] > 0)
{
$values['main'] = (int)$this->id2name($values['parent'],'main');
$values['level'] = (int)$this->id2name($values['parent'],'level' + 1);
$values['level'] = (int)$this->id2name($values['parent'],'level') + 1;
}
else
{
@ -721,6 +721,7 @@
}
switch($item)
{
default: //fall through
case 'name': $value = 'cat_name'; break;
case 'owner': $value = 'cat_owner'; break;
case 'main': $value = 'cat_main'; break;