Quote:
Originally Posted by dcgaming17
The market purchasing is still not working... i get this message
Fatal error: Cannot use object of type mysqli_result as array in /home/--------/public_html/pointmarket/market_purchase.php on line 49
|
Edit market_purchase.php
Find
PHP Code:
$getitem = $vbulletin->db->query_read("SELECT * from " . TABLE_PREFIX . "market_items where mid ='".addslashes($item_id)."'");
$itembuy = $vbulletin->db->fetch_array($getitem);
Change to
PHP Code:
$itembuy = $vbulletin->db->fetch_array($vbulletin->db->query_read("SELECT * from " . TABLE_PREFIX . "market_items where mid ='".addslashes($item_id)."'"));
Find
PHP Code:
// Determine Expiration
$expire = ($itembuy[expire]*86400)+time();
Change to
PHP Code:
// Determine Expiration
$expire = ($itembuy['expire']*86400)+time();
Let me know if that fixes it.