Minor error in class\OfferLazyLoader.php - FIXED IN v3.2

Locked
RWAP
Site Admin
Posts: 750
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Minor error in class\OfferLazyLoader.php - FIXED IN v3.2

Post by RWAP » Sun Feb 10, 2013 12:18 pm

There is a minor error in class\OfferLazyLoader.php - the end curly bracket is in the wrong place

The lines:

Code: Select all

            case '_payMethods':
                $sqlPay = 'select payMethodId from '.Offer::OFFERS_PAYMETHODS_TABLE.' where offerId=:id';
                $stm = $this->_DB->prepare($sqlPay);
                $stm->execute(array(':id'=>$id));
                $dataPay = $stm->fetchAll();
                unset($stm);
                $ret = array();
                if($dataPay){
                    foreach($dataPay as $v){
                        $ret[] = $v['payMethodId'];
                }
                return $ret;
                break;
            }
Should read:

Code: Select all

            case '_payMethods':
                $sqlPay = 'select payMethodId from '.Offer::OFFERS_PAYMETHODS_TABLE.' where offerId=:id';
                $stm = $this->_DB->prepare($sqlPay);
                $stm->execute(array(':id'=>$id));
                $dataPay = $stm->fetchAll();
                unset($stm);
                $ret = array();
                if($dataPay){
                    foreach($dataPay as $v){
                        $ret[] = $v['payMethodId'];
                    }
                }
                return $ret;
                break;

Locked

Who is online

Users browsing this forum: No registered users and 1 guest