Subversion Repositories SmartDukaan

Rev

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

Rev 15583 Rev 15669
Line 194... Line 194...
194
		$this->set('notificationId',$id);
194
		$this->set('notificationId',$id);
195
		$this->set('sortdata', $userActions);
195
		$this->set('sortdata', $userActions);
196
	}
196
	}
197
 
197
 
198
	public function notificationactive(){
198
	public function notificationactive(){
-
 
199
		session_write_close();
199
		$cid = $this->request->query('cid');
200
		$cid = $this->request->query('cid');
-
 
201
		$this->log("cid $cid",'notificationactive');
200
		$options = array('conditions' => array('id'=> $cid,'status'=>'active','expiresAt >'=>date('Y-m-d H:i:s',time())));
202
		$options = array('conditions' => array('id'=> $cid,'status'=>'active','expiresAt >'=>date('Y-m-d H:i:s',time())),'recursive'=>-1);
201
		$count = $this->NotificationCampaign->find('count',$options);
203
		$count = $this->NotificationCampaign->find('count',$options);
202
		
-
 
-
 
204
		$this->log("count ".print_r($count,1),'notificationactive');
203
		if(!$count){
205
		if(!$count){
204
			$result = array('success'=>false);
206
			$result = array('success'=>false);
205
		}else{
207
		}else{
206
			$result = array('success'=>true);
208
			$result = array('success'=>true);
207
		}
209
		}