mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
update function edit
This commit is contained in:
parent
c2c91dd405
commit
b7f318560d
@ -226,14 +226,14 @@
|
||||
if (function_exists('in_array'))
|
||||
{
|
||||
return in_array($needle,$haystack);
|
||||
}
|
||||
}
|
||||
while (list ($k,$v) = each($haystack))
|
||||
{
|
||||
if ($v == $needle)
|
||||
{
|
||||
return True;
|
||||
}
|
||||
}
|
||||
}
|
||||
return False;
|
||||
}
|
||||
|
||||
@ -272,7 +272,7 @@
|
||||
{
|
||||
$s .= '<' . lang('Global') . '>';
|
||||
}
|
||||
$s .= "</option>\n";
|
||||
$s .= '</option>' . "\n";
|
||||
}
|
||||
return $s;
|
||||
}
|
||||
@ -385,13 +385,8 @@
|
||||
$cat_main = $cat_parent;
|
||||
}
|
||||
|
||||
if ($cat_main && ($cat_main > 0))
|
||||
if ($cat_parent && ($cat_parent > 0))
|
||||
{
|
||||
if (!$cat_parent)
|
||||
{
|
||||
$cat_parent = $cat_main;
|
||||
}
|
||||
|
||||
$this->db2->query("select cat_level from phpgw_categories where cat_id='$cat_parent'",__LINE__,__FILE__);
|
||||
$this->db2->next_record();
|
||||
$cat_level = $this->db2->f('cat_level')+1;
|
||||
|
Loading…
Reference in New Issue
Block a user