mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
Fix for bug [ #406681 ] function read_group_names() not exist, thx to Patrick Naubert <patrickn@tygerteam.com>
This commit is contained in:
parent
1ac2174b70
commit
30e8f6e58b
@ -580,6 +580,7 @@
|
||||
$url = $phpgw_info['server']['webserver_url'].'/'.$app.'/'.$url;
|
||||
}
|
||||
} */
|
||||
//echo "$url\n";
|
||||
return $url;
|
||||
}
|
||||
}
|
||||
|
@ -113,13 +113,13 @@
|
||||
}
|
||||
$list[] = array("name" => "home", "type" => "dir", "subdirs" => $hassubdir);
|
||||
$hassubdir = False;
|
||||
$groups = $phpgw->accounts->read_group_names();
|
||||
if (!empty ($groups[0][1])) {
|
||||
$groups = $phpgw->accounts->get_list('groups');
|
||||
if (!empty ($groups[0]['account_lid'])) {
|
||||
$group_count = count($groups);
|
||||
for ($groupidx=0;$groupidx<$group_count;++$groupidx) {
|
||||
$this->verifydir("group",$groups[$groupidx][1]);
|
||||
$this->verifydir("group",$groups[$groupidx]['account_lid']);
|
||||
if ($checksubdirs == "Yes"){ //if its a dir, does that dir have subdirs?
|
||||
$path = $phpgw_info["server"]["files_dir"].$sep."groups".$sep.$groups[$groupidx][1];
|
||||
$path = $phpgw_info["server"]["files_dir"].$sep."groups".$sep.$groups[$groupidx]['account_lid'];
|
||||
$subdir = dir($path);
|
||||
while($subentry=$subdir->read()) {
|
||||
$subpath = $path.$sep.$subentry;
|
||||
@ -129,7 +129,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
$list[] = array("name" => $groups[$groupidx][1], "type" => "dir", "subdirs" => $hassubdir);
|
||||
$list[] = array("name" => $groups[$groupidx]['account_lid'], "type" => "dir", "subdirs" => $hassubdir);
|
||||
$hassubdir = False;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user