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'));
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'));