set config_loaded with uid
This commit is contained in:
		
					parent
					
						
							
								1194e9b41e
							
						
					
				
			
			
				commit
				
					
						5127a113aa
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -25,11 +25,11 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig | ||||||
| 	{ | 	{ | ||||||
| 		parent::__construct(); | 		parent::__construct(); | ||||||
| 
 | 
 | ||||||
|  | 		$this->config_loaded = []; | ||||||
|  | 
 | ||||||
| 		if (isset($uid)) { | 		if (isset($uid)) { | ||||||
| 			$this->load($uid, 'config'); | 			$this->load($uid, 'config'); | ||||||
| 		} | 		} | ||||||
| 
 |  | ||||||
| 		$this->config_loaded = []; |  | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	/** | 	/** | ||||||
|  | @ -43,7 +43,7 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig | ||||||
| 			return $return; | 			return $return; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if ($this->isLoaded($uid, $cat, null)) { | 		if (!$this->isLoaded($uid, $cat, null)) { | ||||||
| 			return $return; | 			return $return; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue