From: <tim...@us...> - 2009-11-22 17:42:56
|
Revision: 3079 http://web-erp.svn.sourceforge.net/web-erp/?rev=3079&view=rev Author: tim_schofield Date: 2009-11-22 17:42:42 +0000 (Sun, 22 Nov 2009) Log Message: ----------- Correction for case of LogPath not being set Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/MiscFunctions.php Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2009-11-22 17:41:16 UTC (rev 3078) +++ trunk/doc/Change.log.html 2009-11-22 17:42:42 UTC (rev 3079) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p> +<p>22/11/09 Tim: MiscFunctions.php - Correction for case of LogPath not being set <p>22/11/09 Tim: PurchData.php - Improve the working of adding and editing purchasing data <p>22/11/09 Tim: PO_PDFOrderPageHeader.php - Correct variable name to show order lines correctly <p>21/11/09 Tim: PO_AuthorisationLevels.php - Correct edit functionality - Fixes Ticket #15 Modified: trunk/includes/MiscFunctions.php =================================================================== --- trunk/includes/MiscFunctions.php 2009-11-22 17:41:16 UTC (rev 3078) +++ trunk/includes/MiscFunctions.php 2009-11-22 17:42:42 UTC (rev 3079) @@ -13,7 +13,9 @@ function getMsg($Msg,$Type='info',$Prefix=''){ $Colour=''; - $LogFile=fopen($_SESSION['LogPath'].'/webERP-test.log', 'a'); + if ($_SESSION['LogSeverity']>0) { + $LogFile=fopen($_SESSION['LogPath'].'/webERP-test.log', 'a'); + } switch($Type){ case 'error': $Class = 'error'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |