mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-10-29 17:37:18 +00:00 
			
		
		
		
	Remove useless try catch
This commit is contained in:
		
							parent
							
								
									d87e245236
								
							
						
					
					
						commit
						8dae05cc22
					
				| @ -114,13 +114,7 @@ class OcSmsApp extends App { | |||||||
| 			return; | 			return; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		$result = array(); |  | ||||||
| 		try { |  | ||||||
| 		$result = $cm->search('',array('FN')); | 		$result = $cm->search('',array('FN')); | ||||||
| 		} catch (Exception $e) { |  | ||||||
| 			// If contact manager failed, avoid the issue
 |  | ||||||
| 			return; |  | ||||||
| 		} |  | ||||||
| 
 | 
 | ||||||
| 		foreach ($result as $r) { | 		foreach ($result as $r) { | ||||||
| 			if (isset ($r["TEL"])) { | 			if (isset ($r["TEL"])) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user