Skip to content

Commit

Permalink
Ticket #3265
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Aug 12, 2021
1 parent 8852450 commit 042e58e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/boonex/ads/classes/BxAdsDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,16 @@ public function getOffersBy($aParams = array())
return call_user_func_array(array($this, $aMethod['name']), $aMethod['params']);
}

public function insertOffer($aSet)
{
$CNF = &$this->_oConfig->CNF;

if(!isset($aSet[$CNF['FIELD_OFR_ADDED']]))
$aSet[$CNF['FIELD_OFR_ADDED']] = time();

return (int)$this->query("INSERT INTO `" . $CNF['TABLE_OFFERS'] . "` SET " . $this->arrayToSQL($aSet)) > 0;
}

public function updateOffer($aSet, $aWhere)
{
$CNF = &$this->_oConfig->CNF;
Expand Down

0 comments on commit 042e58e

Please sign in to comment.