Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix array access to nullable property
Trying to access array offset on value of type null (protected/models/User.php:318) Stack trace: #0 yii/framework/base/CComponent.php(111): User->getUpicUrl() #1 yii/framework/db/ar/CActiveRecord.php(145): User->__get() basavind#2 protected/views/users/profile_head.php(15): User->__get() basavind#3 yii/framework/web/CBaseController.php(126): require() basavind#4 yii/framework/web/CBaseController.php(95): UsersController->renderInternal() basavind#5 yii/framework/web/CController.php(872): UsersController->renderFile() basavind#6 protected/views/users/books.php(15): UsersController->renderPartial() uisky#7 yii/framework/web/CBaseController.php(126): require() uisky#8 yii/framework/web/CBaseController.php(95): UsersController->renderInternal() uisky#9 yii/framework/web/CController.php(872): UsersController->renderFile() uisky#10 yii/framework/web/CController.php(785): UsersController->renderPartial() uisky#11 protected/controllers/UsersController.php(186): UsersController->render() uisky#12 unknown(0): UsersController->actionBooks() uisky#13 yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs() uisky#14 yii/framework/web/actions/CInlineAction.php(47): CInlineAction->runWithParamsInternal() uisky#15 yii/framework/web/CController.php(308): CInlineAction->runWithParams() uisky#16 yii/framework/web/filters/CFilterChain.php(134): UsersController->runAction() #17 yii/framework/web/CController.php(291): CFilterChain->run() #18 yii/framework/web/CController.php(265): UsersController->runActionWithFilters() #19 yii/framework/web/CWebApplication.php(282): UsersController->run() #20 yii/framework/web/CWebApplication.php(141): CWebApplication->runController() #21 yii/framework/base/CApplication.php(185): CWebApplication->processRequest() #22 www/index.php(15): CWebApplication->run()
- Loading branch information