Subversion Repositories SmartDukaan

Rev

Rev 14782 | Rev 14787 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14782 Rev 14785
Line 277... Line 277...
277
					}
277
					}
278
	        	}
278
	        	}
279
	        	if(!empty($this->request->data['referrer'])) {
279
	        	if(!empty($this->request->data['referrer'])) {
280
	        		$referrer = $this->request->data['referrer'];
280
	        		$referrer = $this->request->data['referrer'];
281
	        		$this->loadModel('ActivationCode');
281
	        		$this->loadModel('ActivationCode');
282
	        		$exists = $this->ActivationCode->findByCode($referrer);
282
	        		$exists = $this->ActivationCode->findByCode(strtoupper($referrer));
283
	        		if(empty($exists)){
283
	        		if(empty($exists)){
284
	        			$result = array('success'=>false,'message'=>'Invalid referral code');
284
	        			$result = array('success'=>false,'message'=>'Invalid referral code');
285
	        			unset($this->request->data['referrer']);
285
	        			unset($this->request->data['referrer']);
286
	        			$updateRequired = false;
286
	        			$updateRequired = false;
287
	        		}
287
	        		}