[endspiel] 1 new revision pushed by tvsdes...@gmail.com on 2009-09-04 20:30 GMT

1 view
Skip to first unread message

codesite...@google.com

unread,
Sep 4, 2009, 4:31:30 PM9/4/09
to endspi...@googlegroups.com
Revision: 2b455861a6
Author: tvsd...@gmail.com
Date: Fri Sep 4 10:50:38 2009
Log: Исправлена ошибка с попыткой создания дубликатов ключа 0, возникающая
при снятии вещей.
http://code.google.com/p/endspiel/source/detail?r=2b455861a6

Modified:
/lib/inventory.class.php

=======================================
--- /lib/inventory.class.php Thu Sep 3 11:09:48 2009
+++ /lib/inventory.class.php Fri Sep 4 10:50:38 2009
@@ -82,7 +82,7 @@

public function takeOffItem($slot)
{
- $stmt = Engine::get()->db->prepare('UPDATE `equipment` SET `itemid` = 0
WHERE `userid` = :id AND `slot` = :slot LIMIT 1;');
+ $stmt = Engine::get()->db->prepare('DELETE FROM `equipment` WHERE
`userid` = :id AND `slot` = :slot LIMIT 1;');
$stmt->bindValue(':id', $this->id);
$stmt->bindValue(':slot', $slot);
$stmt->execute();
Reply all
Reply to author
Forward
0 new messages