Got of the get_* function about data, use get_data_value instead (except for get_id, which is very conveniant).
This commit is contained in:
parent
7c2ed027ff
commit
1c36d14673
2 changed files with 3 additions and 15 deletions
|
|
@ -54,7 +54,7 @@ class Conversation extends BaseObject {
|
|||
$result = array();
|
||||
|
||||
foreach($this->threads as $item) {
|
||||
if($item->get_network() === NETWORK_MAIL && local_user() != $item->get_uid())
|
||||
if($item->get_data_value('network') === NETWORK_MAIL && local_user() != $item->get_data_value('uid'))
|
||||
continue;
|
||||
$item_data = $item->get_template_data($cmnt_tpl, $this->mode, $alike, $dlike);
|
||||
if(!$item_data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue