Issues (4868)

home/index.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * EGroupware - Home - user interface
4
 *
5
 * @link www.egroupware.org
6
 * @author Nathan Gray
7
 * @copyright (c) 2013 by Nathan Gray
8
 * @package home
9
 * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
10
 * @version $Id$
11
 */
12
13
$GLOBALS['egw_info'] = array(
14
	'flags' => array(
15
		'noheader'                => true,
16
		'nonavbar'                => true,
17
		'currentapp'              => 'home',
18
	)
19
);
20
21
include('../header.inc.php');
22
$GLOBALS['egw_info']['flags']['nonavbar']=false;
23
24
// Home is treated specially, so a redirect won't work.
25
$home = new home_ui();
26
echo $home->index();
0 ignored issues
show
Are you sure the usage of $home->index() targeting home_ui::index() seems to always return null.

This check looks for function or method calls that always return null and whose return value is used.

class A
{
    function getObject()
    {
        return null;
    }

}

$a = new A();
if ($a->getObject()) {

The method getObject() can return nothing but null, so it makes no sense to use the return value.

The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.

Loading history...
27