fixed PHP5 warning
This commit is contained in:
		
							parent
							
								
									bec386889c
								
							
						
					
					
						commit
						fa3cefd455
					
				| 
						 | 
					@ -1433,6 +1433,7 @@ class accountContainer {
 | 
				
			||||||
		foreach ($module as $singlemodule) {
 | 
							foreach ($module as $singlemodule) {
 | 
				
			||||||
			// load changes
 | 
								// load changes
 | 
				
			||||||
			$temp = $this->module[$singlemodule]->save_attributes();
 | 
								$temp = $this->module[$singlemodule]->save_attributes();
 | 
				
			||||||
 | 
								if (!is_array($temp)) $temp = array();
 | 
				
			||||||
			// merge changes
 | 
								// merge changes
 | 
				
			||||||
			$DNs = array_keys($temp);
 | 
								$DNs = array_keys($temp);
 | 
				
			||||||
			// *** fixme don't include references
 | 
								// *** fixme don't include references
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -579,7 +579,7 @@ class posixGroup extends baseModule {
 | 
				
			||||||
			$maxID = intval($this->moduleSettings['posixGroup_maxGID'][0]);
 | 
								$maxID = intval($this->moduleSettings['posixGroup_maxGID'][0]);
 | 
				
			||||||
			$dn_gids = $_SESSION['cache']->get_cache('gidNumber', 'posixGroup', 'group');
 | 
								$dn_gids = $_SESSION['cache']->get_cache('gidNumber', 'posixGroup', 'group');
 | 
				
			||||||
			// get_cache will return an array ( dn1 => array(uidnumber1), dn2 => array(uidnumber2), ... )
 | 
								// get_cache will return an array ( dn1 => array(uidnumber1), dn2 => array(uidnumber2), ... )
 | 
				
			||||||
			if(is_array($dn_gids)) {
 | 
								if(is_array($dn_gids) && (sizeof($dn_gids) > 0)) {
 | 
				
			||||||
				foreach ($dn_gids as $gid) $gids[] = $gid[0];
 | 
									foreach ($dn_gids as $gid) $gids[] = $gid[0];
 | 
				
			||||||
				sort ($gids, SORT_NUMERIC);
 | 
									sort ($gids, SORT_NUMERIC);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue