Subversion Repositories SmartDukaan

Rev

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

Rev 14964 Rev 14967
Line 280... Line 280...
280
		$this->set('sortdata', $userActions);
280
		$this->set('sortdata', $userActions);
281
	}
281
	}
282
 
282
 
283
	public function notificationactive(){
283
	public function notificationactive(){
284
		$cid = $this->request->query('cid');
284
		$cid = $this->request->query('cid');
285
		$options = array('conditions' => array('id'=> $cid,'expiresAt >'=>date('Y-m-d H:i:s',time())));
285
		$options = array('conditions' => array('id'=> $cid,'status'=>'active','expiresAt >'=>date('Y-m-d H:i:s',time())));
286
		$count = $this->NotificationCampaign->find('count',$options);
286
		$count = $this->NotificationCampaign->find('count',$options);
287
		
287
		
288
		if(!$count){
288
		if(!$count){
289
			$result = array('success'=>false);
289
			$result = array('success'=>false);
290
		}else{
290
		}else{