mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
Fix undefined notice
Ahh @gpedro ;)
This commit is contained in:
parent
cd1b481de5
commit
33817e5ab1
@ -254,8 +254,8 @@ class CreateCharacter
|
|||||||
|
|
||||||
$loaded_items_to_copy = $db->query("SELECT * FROM player_items WHERE player_id = ".$char_to_copy->getId()."");
|
$loaded_items_to_copy = $db->query("SELECT * FROM player_items WHERE player_id = ".$char_to_copy->getId()."");
|
||||||
foreach($loaded_items_to_copy as $save_item) {
|
foreach($loaded_items_to_copy as $save_item) {
|
||||||
$blob = addslashes($save_item['attribute']);
|
$blob = $db->quote($save_item['attributes']);
|
||||||
$db->query("INSERT INTO `player_items` (`player_id` ,`pid` ,`sid` ,`itemtype`, `count`, `attributes`) VALUES ('".$player->getId()."', '".$save_item['pid']."', '".$save_item['sid']."', '".$save_item['itemtype']."', '".$save_item['count']."', '{$blob}');");
|
$db->query("INSERT INTO `player_items` (`player_id` ,`pid` ,`sid` ,`itemtype`, `count`, `attributes`) VALUES ('".$player->getId()."', '".$save_item['pid']."', '".$save_item['sid']."', '".$save_item['itemtype']."', '".$save_item['count']."', $blob);");
|
||||||
}
|
}
|
||||||
|
|
||||||
global $twig;
|
global $twig;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user