Trying to get property of non-object

I get this error:

Trying to get property of non-object


<th><?php echo Yii::t('BbiiModule.bbii','Newest member'); ?></th><td><?php $member = BbiiMember::model()->newest()->find(); echo CHtml::link($member->member_name, array('member/view', 'id'=>$member->id)); ?></td>

Please help!

Check if $member is null

Thanks for the quick reply, but this extension is supposed to work well without tweaking the code, isn’t it?

Could be a bug. I’ll check it.

ups, I really wanted to reply the bbii forum extension thread and I mistakenly opened a new thread