From: <ex...@us...> - 2016-12-08 13:39:56
|
Revision: 7700 http://sourceforge.net/p/web-erp/reponame/7700 Author: exsonqu Date: 2016-12-08 13:39:54 +0000 (Thu, 08 Dec 2016) Log Message: ----------- 08/12/16 Exson: Fixed noise of undefined variable and string required for function_exists in Dashboard.php. Reported by Shane. Modified Paths: -------------- trunk/Dashboard.php Modified: trunk/Dashboard.php =================================================================== --- trunk/Dashboard.php 2016-12-06 19:42:15 UTC (rev 7699) +++ trunk/Dashboard.php 2016-12-08 13:39:54 UTC (rev 7700) @@ -73,7 +73,6 @@ $TotDue = 0; $TotOD1 = 0; $TotOD2 = 0; - $ListCount = DB_num_rows($CustomerResult); $CurrDecimalPlaces = 2;//By default. if(!isset($_POST['Salesman'])) { @@ -261,7 +260,7 @@ if($DetailTrans['daysbeforedue'] > 0) { $AddDays=$DetailTrans['daysbeforedue'] . ' days'; - if(function_exists(date_add)) { + if(function_exists('date_add')) { $DisplayDueDate = date_add(date_create($DetailTrans['trandate']), date_interval_create_from_date_string($AddDays)); } else { $DisplayDueDate = strtotime($AddDays,strtotime($DetailTrans['trandate'])); @@ -269,7 +268,7 @@ } else { $AddDays=(intval($DetailTrans['dayinfollowingmonth']) - 1) . ' days'; - if(function_exists(date_add)) { + if(function_exists('date_add')) { $DisplayDueDate = date_create($DetailTrans['trandate']); $DisplayDueDate->modify('first day of next month'); $DisplayDueDate = date_add($DisplayDueDate, date_interval_create_from_date_string($AddDays)); @@ -279,7 +278,7 @@ } } - if(function_exists(date_add)) { + if(function_exists('date_add')) { $DisplayDueDate=date_format($DisplayDueDate,$_SESSION['DefaultDateFormat']); } else { $DisplayDueDate = Date($_SESSION['DefaultDateFormat'],$DisplayDueDate); @@ -691,4 +690,4 @@ } //rows > 0 } //OrderSecurity include('includes/footer.inc'); -?> \ No newline at end of file +?> |