mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 18:47:33 +08:00 
			
		
		
		
	Fix #17522: DbManager::isEmptyUserId() is now protected
				
					
				
			This commit is contained in:
		 Alexander Makarov
					Alexander Makarov
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							5e38f47275
						
					
				
				
					commit
					dfbf176831
				
			| @ -1046,8 +1046,9 @@ class DbManager extends BaseManager | ||||
|      * Check whether $userId is empty. | ||||
|      * @param mixed $userId | ||||
|      * @return bool | ||||
|      * @since 2.0.26 | ||||
|      */ | ||||
|     private function isEmptyUserId($userId) | ||||
|     protected function isEmptyUserId($userId) | ||||
|     { | ||||
|         return !isset($userId) || $userId === ''; | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user