mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +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
				
			| @ -9,6 +9,7 @@ Yii Framework 2 Change Log | |||||||
| - Bug #17507: Fixed regular expression escaping and simpler condition in `Controller::createAction()` (kamarton) | - Bug #17507: Fixed regular expression escaping and simpler condition in `Controller::createAction()` (kamarton) | ||||||
| - Bug #16305: Fix `FileValidator` mime-type validation failure because of case sensitivity (kamarton) | - Bug #16305: Fix `FileValidator` mime-type validation failure because of case sensitivity (kamarton) | ||||||
| - Bug #17355: Fixed Pjax after request event bug (kamarton) | - Bug #17355: Fixed Pjax after request event bug (kamarton) | ||||||
|  | - Bug #17522: `DbManager::isEmptyUserId()` is now protected (samdark) | ||||||
|  |  | ||||||
|  |  | ||||||
| 2.0.25 August 13, 2019 | 2.0.25 August 13, 2019 | ||||||
|  | |||||||
| @ -1046,8 +1046,9 @@ class DbManager extends BaseManager | |||||||
|      * Check whether $userId is empty. |      * Check whether $userId is empty. | ||||||
|      * @param mixed $userId |      * @param mixed $userId | ||||||
|      * @return bool |      * @return bool | ||||||
|  |      * @since 2.0.26 | ||||||
|      */ |      */ | ||||||
|     private function isEmptyUserId($userId) |     protected function isEmptyUserId($userId) | ||||||
|     { |     { | ||||||
|         return !isset($userId) || $userId === ''; |         return !isset($userId) || $userId === ''; | ||||||
|     } |     } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user