Bug script does not deliver points of purchase [duplicate]

-1
Hello everyone, I use modern acc, I am using a buy and sell system, it removes the points from the account database and saves it in a table in the same way, representing an auction offer, but if I buy direct without giving the bid at the time of doing the character exchange for the points does not happen this only removes the points of who spent it wins the character but who sold does not receive the points for the sale and an error.

the system is a page in php I will be posting here

As the code is too big I put this site to not get giant

link

Error Print

    
asked by anonymous 25.07.2018 / 19:37

1 answer

1

The error says that the buy_know key is not set to be accessed in some variable. More specifically in this variable: $auctionInfo['buy_know']) . You probably wanted to type $auctionInfo['buy_now'])

The error lies in this line:

   $finishedAuctionOwner->setPremiumPoints($finishedAuctionOwner->getPremiumPoints() + $auctionInfo['buy_know']);
    
26.07.2018 / 00:29