Revision 1189
Added by Luisehahne almost 16 years ago
| functions.php | ||
|---|---|---|
| 157 | 157 | // Only return home folders is this feature is enabled | 
| 158 | 158 | // and user is not admin | 
| 159 | 159 | //	if(HOME_FOLDERS AND ($_SESSION['GROUP_ID']!='1')) {
 | 
| 160 | 	if(HOME_FOLDERS AND (!in_array('1',split(",",$_SESSION['GROUPS_ID'])))) {
 | |
| 160 | 	if(HOME_FOLDERS AND (!in_array('1',explode(",", $_SESSION['GROUPS_ID'])))) {
 | |
| 161 | 161 |  | 
| 162 | 162 | 		$query_home_folders = $database->query("SELECT home_folder FROM ".TABLE_PREFIX."users WHERE home_folder != '".$admin->get_home_folder()."'");
 | 
| 163 | 163 | 		if($query_home_folders->numRows() > 0) {
 | 
Also available in: Unified diff
fix some PHP 5.3 deprecated functions