From: <tim...@us...> - 2010-10-02 13:26:46
|
Revision: 4089 http://web-erp.svn.sourceforge.net/web-erp/?rev=4089&view=rev Author: tim_schofield Date: 2010-10-02 13:26:40 +0000 (Sat, 02 Oct 2010) Log Message: ----------- Corrections to sql quoting. Resolves bug 3023782 Modified Paths: -------------- trunk/doc/Change.log.html trunk/includes/session.inc Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-10-02 13:17:46 UTC (rev 4088) +++ trunk/doc/Change.log.html 2010-10-02 13:26:40 UTC (rev 4089) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>02/10/10 Tim: session.inc - Corrections to sql quoting. Resolves bug 3023782</p> <p>02/10/10 Tim: ppdf_tpl.php - Make php 5.3 compatible</p> <p>02/10/10 Tim: GLJournal.php - Fix to create a reversing journal even when non english language is used.</p> <p>02/10/10 Tim: PDFGrnHeader.php - Show correct column headings. Fixes bug 3072507</p> Modified: trunk/includes/session.inc =================================================================== --- trunk/includes/session.inc 2010-10-02 13:17:46 UTC (rev 4088) +++ trunk/includes/session.inc 2010-10-02 13:26:40 UTC (rev 4089) @@ -147,8 +147,8 @@ while ($CurrencyRow = DB_fetch_row($CurrenciesResult)){ if ($CurrencyRow[0]!=$_SESSION['CompanyRecord']['currencydefault']){ - $UpdateCurrRateResult = DB_query('UPDATE currencies SET - rate=' . GetCurrencyRate ($CurrencyRow[0],$CurrencyRates) . " ' + $UpdateCurrRateResult = DB_query("UPDATE currencies SET + rate='" . GetCurrencyRate($CurrencyRow[0],$CurrencyRates) . "' WHERE currabrev='" . $CurrencyRow[0] . "'",$db); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |