yii-user-management icon indicating copy to clipboard operation
yii-user-management copied to clipboard

Trying to get property of non-object YumFriendship.php

Open platix opened this issue 11 years ago • 0 comments

When the module Friendship is disabled and accesing to /message/message/compose it fails.

Trying to get property of non-object YumFriendship.php

the problem is in /modules/message/views/message/compose.php

on line 30 CHtml::listData(Yii::app()->user->data()->getFriends(), 'id', 'username'));

I fix it changing this line to: CHtml::listData((Yum::hasModule('membership')?Yii::app()->user->data()->getFriends():YumUser::model()->findAll()), 'id', 'username'));

platix avatar Jan 16 '14 12:01 platix