Subversion Repositories SmartDukaan

Rev

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

Rev 21132 Rev 21133
Line 712... Line 712...
712
		if($type == 'unactivated'){
712
		if($type == 'unactivated'){
713
			$options['conditions'] = array('activated' =>0);
713
			$options['conditions'] = array('activated' =>0);
714
		}
714
		}
715
		else if(!empty($type) && !empty($search)){
715
		else if(!empty($type) && !empty($search)){
716
			if($type=='id'){
716
			if($type=='id'){
-
 
717
				$type='User.id';
717
				$options['conditions'] = array($type =>$search);			
718
				$options['conditions'] = array($type =>$search);			
718
			}else{
719
			}else{
719
				$options['conditions'] = array($type.' LIKE '=>"%$search%");			
720
				$options['conditions'] = array($type.' LIKE '=>"%$search%");			
720
			}
721
			}
721
		}else{
722
		}else{