From 6f8e2e60cebd229b01ff9b0f7ec65ec14b475f6c Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 18 Aug 2011 15:00:39 +0000 Subject: [PATCH] Internal: the transaction mechanism was inoperant when a form was built within the target page. SVN:trunk[1470] --- application/transaction.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/transaction.class.inc.php b/application/transaction.class.inc.php index 3f7ae058b..1fd7451bb 100644 --- a/application/transaction.class.inc.php +++ b/application/transaction.class.inc.php @@ -38,11 +38,11 @@ class privUITransaction // Strictly speaking, the two lines below should be grouped together // by a critical section // sem_acquire($rSemIdentified); - $id = 1 + count($_SESSION['transactions']); + $id = str_replace(array('.', ' '), '', microtime()); //1 + count($_SESSION['transactions']); $_SESSION['transactions'][$id] = true; // sem_release($rSemIdentified); - return sprintf("%d", $id); + return (string)$id; } /**