Вызов функции-члена - null
Когда я пытаюсь получить доступ к своему приложению, я получаю эту ошибку - Неустранимая ошибка: вызов функции-члена home() on null в /home/evilsro1/domains/evils.ro/public_html/forum/admin/applications_addon/other/groupjoin/modules_public/view/view.php в строке 140
Я использую IPB3.4.9, и имя приложения Applications Systems v2.3.0.1
Код PHP:
public function home()
{
$html = array();
//--------------------------------------------------
// Get my applications, if any
//--------------------------------------------------
if( $this->memberData['member_id'] )
{
// Count them
$_count = $this->DB->buildAndFetch( array( 'select' => "COUNT(*) as app_id", 'from' => APPS, 'where' => 'by_member = ' . $this->memberData['member_id'] ) );
// Got at least one?
if( $_count['app_id'] )
{
// Load them
$my_applications = $this->lib->loadApplicationsMin( array( 'a.by_member' => $this->memberData['member_id'] ), array( 'myapps', 'myapps' ) );
//
// if( $count['app_id'] > 4 ) $my_load = true;
$ids = array( 'container' => 'my_applications', 'h1_title' => $this->lang->words['my_applications'] );
$html['my_applications_rows'] = $this->registry->output->getTemplate('groupjoin')->applications( $my_applications[1], "group_picture" );
$html['my_applications'] = $this->registry->output->getTemplate('groupjoin')->applicationsTable( $ids, $html['my_applications_rows'], $my_load );
}
}
// Last 3 Applications
/*$most_recent = $this->lib->loadApplicationsMin( array( '*' ) );
if( count( $most_recent ) )
{
if( count( $most_recent ) > 3 ) $recent_load = true;
$ids = array( 'container' => 'most_recent', 'h1_title' => $this->lang->words['recent_applications'] );
$html['most_recent_rows'] = $this->registry->output->getTemplate('groupjoin')->applications( $most_recent );
$html['most_recent'] = $this->registry->output->getTemplate('groupjoin')->applicationsTable( $ids, $html['most_recent_rows'], $recent_load );
}*/
//-----------------------------------------
// Load groups table
//-----------------------------------------
$groups = $this->lib->loadGroupsTable( );
if( count( $groups ) )
{
$ids = array( 'container' => 'groups', 'h1_title' => $this->lang->words['groups_table'] );
$html['groups_rows'] = $this->registry->output->getTemplate('groupjoin')->groups( $groups );
$html['groups'] = $this->registry->output->getTemplate('groupjoin')->applicationsTable( $ids, $html['groups_rows'], false );
}
$html['b'] = $this->lib->branding();
//-----------------------------------------
// Output!
//-----------------------------------------
$html['title'] = $this->lang->words['applications_home'];
$this->registry->output->setTitle( $this->lang->words['viewing_title'] );
$this->registry->output->addNavigation( $this->lang->words['viewing_navigation'], '' );
$template .= $this->registry->output->getTemplate('groupjoin')->home( $html );//<-- here
// $template .= $this->registry->output->getTemplate('groupjoin')->apply_test_test( $html );
$this->registry->getClass('output')->addContent( $template );
$this->registry->getClass('output')->sendOutput();
}