From: <tu...@us...> - 2017-12-20 19:25:21
|
Revision: 7895 http://sourceforge.net/p/web-erp/reponame/7895 Author: turbopt Date: 2017-12-20 19:25:18 +0000 (Wed, 20 Dec 2017) Log Message: ----------- FormMaker.php, ReportMaker.php, WriteForm.inc: A few more PHP 7.1 array compatibility changes. Modified Paths: -------------- trunk/doc/Change.log trunk/reportwriter/FormMaker.php trunk/reportwriter/ReportMaker.php trunk/reportwriter/WriteForm.inc Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2017-12-20 18:36:08 UTC (rev 7894) +++ trunk/doc/Change.log 2017-12-20 19:25:18 UTC (rev 7895) @@ -1,5 +1,6 @@ webERP Change Log +20/12/17 PaulT: FormMaker.php, ReportMaker.php, WriteForm.inc: A few more PHP 7.1 array compatibility changes. 20/12/17 PaulT: RCFunctions.inc, FormMaker.php: PHP 7.1 array compatibility change. 19/12/17 PaulT: PDFOrderStatus.php: Remove redundant ConnectDB.inc include reference. (already included by session.php at the top of the file) 19/12/17 PaulT: Change.log: Correct my Day/Month entry references over the last few days. Modified: trunk/reportwriter/FormMaker.php =================================================================== --- trunk/reportwriter/FormMaker.php 2017-12-20 18:36:08 UTC (rev 7894) +++ trunk/reportwriter/FormMaker.php 2017-12-20 19:25:18 UTC (rev 7895) @@ -18,7 +18,7 @@ require('languages/'.$ReportLanguage.'/reports.php'); // include translation before defaults.php require('admin/defaults.php'); // load default values -$usrMsg = ''; // setup array for return messages +$usrMsg = array(); // setup array for return messages $GoBackURL = $RootPath.'/index.php'; // set the return path to the index.php page if (isset($_GET['id'])) { // then entered with form group requested @@ -218,7 +218,7 @@ function RetrieveFields($ReportID, $EntryType) { global $db; - $FieldListings = ''; + $FieldListings = array(); $sql= "SELECT * FROM ".DBRptFields." WHERE reportid = '".$ReportID."' AND entrytype = '".$EntryType."' Modified: trunk/reportwriter/ReportMaker.php =================================================================== --- trunk/reportwriter/ReportMaker.php 2017-12-20 18:36:08 UTC (rev 7894) +++ trunk/reportwriter/ReportMaker.php 2017-12-20 19:25:18 UTC (rev 7895) @@ -18,7 +18,7 @@ require('languages/'.$ReportLanguage.'/reports.php'); // include translation before defaults.php require('admin/defaults.php'); // load default values -$usrMsg = ''; // setup array for return messages +$usrMsg = array(); // setup array for return messages if (isset($_GET['reportid'])) { // then entered with report id requested, fix variable to show filter form $_POST['todo'] = RPT_BTN_CONT; // fake the code to think the continue button was pressed $_POST['ReportID'] = (int) $_GET['reportid']; // convert Report ID to a POST variable @@ -240,7 +240,7 @@ function RetrieveFields($ReportID, $EntryType) { global $db; - $FieldListings = ''; + $FieldListings = array(); $sql= "SELECT * FROM ".DBRptFields." WHERE reportid = '".$ReportID."' AND entrytype = '".$EntryType."' ORDER BY seqnum"; Modified: trunk/reportwriter/WriteForm.inc =================================================================== --- trunk/reportwriter/WriteForm.inc 2017-12-20 18:36:08 UTC (rev 7894) +++ trunk/reportwriter/WriteForm.inc 2017-12-20 19:25:18 UTC (rev 7895) @@ -567,7 +567,7 @@ } // Build the sql $tblField = ''; - $tblHeading = ''; + $tblHeading = array(); foreach ($SingleObject['params']['Seq'] as $TableField) { $tblField .= $TableField['TblField'].', '; $tblHeading[] = $TableField['TblDesc']; |