Fix #17522: DbManager::isEmptyUserId() is now protected

This commit is contained in:
Alexander Makarov
2019-08-27 21:05:48 +03:00
committed by GitHub
parent 5e38f47275
commit dfbf176831
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 === '';
} }