Internal: the transaction mechanism was inoperant when a form was built within the target page.

SVN:trunk[1470]
This commit is contained in:
Romain Quetiez
2011-08-18 15:00:39 +00:00
parent b7b8da0848
commit 6f8e2e60ce

View File

@@ -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;
}
/**