You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'));
The text was updated successfully, but these errors were encountered:
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'));
The text was updated successfully, but these errors were encountered: