Skip to content

Commit c7a2b62

Browse files
authored
Merge pull request #67 from pagantis/INT-1092
Int 1092
2 parents e3bbdcf + 062f381 commit c7a2b62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extension/app/code/community/Pagantis/Pagantis/controllers/NotifyController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ protected function blockConcurrency($orderId)
468468
try {
469469
$conn = Mage::getSingleton('core/resource')->getConnection('core_write');
470470
$tableName = Mage::getSingleton('core/resource')->getTableName(self::CONCURRENCY_TABLENAME);
471-
$sql = "INSERT INTO " . $tableName . " VALUE (" . $orderId. "," . time() . ")";
471+
$sql = "INSERT INTO " . $tableName . " VALUE ('" . $orderId. "'," . time() . ")";
472472
$conn->query($sql);
473473
} catch (Exception $e) {
474474
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
@@ -480,7 +480,7 @@ protected function blockConcurrency($orderId)
480480
"SELECT TIMESTAMPDIFF(SECOND,NOW()-INTERVAL %s SECOND, FROM_UNIXTIME(timestamp)) as rest FROM %s WHERE %s",
481481
self::CONCURRENCY_TIMEOUT,
482482
$tableName,
483-
"id=$orderId"
483+
"id='$orderId'"
484484
);
485485
$resultSeconds = $dbObject->fetchOne($query);
486486
$restSeconds = isset($resultSeconds) ? ($resultSeconds) : 0;
@@ -521,7 +521,7 @@ protected function unblockConcurrency($orderId = null)
521521
$sql = "DELETE FROM " . $tableName . " WHERE timestamp <" .
522522
(time() - self::CONCURRENCY_TIMEOUT);
523523
} else {
524-
$sql = "DELETE FROM " . $tableName . " WHERE id = " . $orderId;
524+
$sql = "DELETE FROM " . $tableName . " WHERE id ='" . $orderId."'";
525525
}
526526
$conn->query($sql);
527527
} catch (Exception $e) {

extension/app/code/community/Pagantis/Pagantis/etc/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<modules>
55
<Pagantis_Pagantis>
6-
<version>8.3.9</version>
6+
<version>8.3.10</version>
77
</Pagantis_Pagantis>
88
</modules>
99

0 commit comments

Comments
 (0)