From: <tim...@us...> - 2012-02-12 10:54:01
|
Revision: 4890 http://web-erp.svn.sourceforge.net/web-erp/?rev=4890&view=rev Author: tim_schofield Date: 2012-02-12 10:53:55 +0000 (Sun, 12 Feb 2012) Log Message: ----------- Fix so that $identifier is created before anything else is done Modified Paths: -------------- trunk/SupplierTenderCreate.php Modified: trunk/SupplierTenderCreate.php =================================================================== --- trunk/SupplierTenderCreate.php 2012-02-12 03:51:25 UTC (rev 4889) +++ trunk/SupplierTenderCreate.php 2012-02-12 10:53:55 UTC (rev 4890) @@ -7,10 +7,6 @@ $Maximum_Number_Of_Parts_To_Show=50; -if (isset($_GET['New']) AND isset($_SESSION['tender'.$identifier])) { - unset($_SESSION['tender'.$identifier]); -} - if (empty($_GET['identifier'])) { /*unique session identifier to ensure that there is no conflict with other supplier tender sessions on the same machine */ $identifier=date('U'); @@ -18,6 +14,10 @@ $identifier=$_GET['identifier']; } +if (isset($_GET['New']) AND isset($_SESSION['tender'.$identifier])) { + unset($_SESSION['tender'.$identifier]); +} + if (isset($_GET['New']) AND $_SESSION['CanCreateTender']==0) { $title = _('Authorisation Problem'); include('includes/header.inc'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |