mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-28 00:49:11 +00:00 
			
		
		
		
	Fix regex and then duplicate numbers into conversation
This commit is contained in:
		
							parent
							
								
									66859a4940
								
							
						
					
					
						commit
						e655024521
					
				| @ -143,7 +143,7 @@ class SmsController extends Controller { | |||||||
| 
 | 
 | ||||||
| 				$msgCount += $this->smsMapper->countMessagesForPhoneNumber($this->userId, $fmtPN); | 				$msgCount += $this->smsMapper->countMessagesForPhoneNumber($this->userId, $fmtPN); | ||||||
| 
 | 
 | ||||||
| 				$fmtPNCleaned = preg_replace("#[ ]|-|\(|\)]#","", $fmtPN); | 				$fmtPNCleaned = preg_replace("#[ ]|[-]|[(]|[)]#","", $fmtPN); | ||||||
| 				if (!in_array($fmtPNCleaned, $cleanedPhones)) { | 				if (!in_array($fmtPNCleaned, $cleanedPhones)) { | ||||||
| 					$phoneNumbers[] = $fmtPN; | 					$phoneNumbers[] = $fmtPN; | ||||||
| 					$cleanedPhones[] = $fmtPNCleaned; | 					$cleanedPhones[] = $fmtPNCleaned; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user