Skip to content

Commit 3e1a277

Browse files
committed
FIX: E_WARNING Attempt to read property "value" on null - in
..._0.file.execTimelineStats.tpl.php - Line 119 and E_WARNING Array to string conversion - in ..._0.file.show_table_qty_datetime.inc.tpl.php - Line 61
1 parent 085255f commit 3e1a277

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

lib/results/execTimelineStats.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,15 @@
66
* @filesource execTimelineStats.php
77
*
88
*/
9-
require('../../config.inc.php');
10-
11-
// Must be included BEFORE common.php
12-
require_once('../../third_party/codeplex/PHPExcel.php');
13-
14-
require_once('common.php');
15-
require_once('displayMgr.php');
9+
require_once '../../config.inc.php';
10+
require_once '../../third_party/codeplex/PHPExcel.php'; // Must be included BEFORE common.php
11+
require_once 'common.php';
12+
require_once 'displayMgr.php';
1613

1714
$timerOn = microtime(true);
1815
$tplCfg = templateConfiguration();
1916

20-
testlinkInitPage($db,'init_project' == 'dont_init_project',
21-
'doNotCheckSession' == 'doNotCheckSession');
17+
testlinkInitPage($db,'init_project' == 'dont_init_project', true);
2218

2319
list($tplan_mgr,$args) = initArgsForReports($db);
2420
if( null == $tplan_mgr ) {
@@ -41,7 +37,7 @@
4137
if ($stats != null) {
4238
$gui->do_report['status_ok'] = 1;
4339
$gui->do_report['msg'] = '';
44-
$gui->statistics->exec = $stats;
40+
$gui->statistics->exec = $stats[0];
4541

4642
if( !is_null($gui->statistics->exec) ) {
4743
switch ($group) {

0 commit comments

Comments
 (0)