fix numeric values being set as string
This commit is contained in:
		
							parent
							
								
									b078751e5b
								
							
						
					
					
						commit
						d20f0fcf88
					
				| @ -25,6 +25,9 @@ function type_to_string($n) { | |||||||
|                 return $n ? 'true' : 'false'; |                 return $n ? 'true' : 'false'; | ||||||
|         } |         } | ||||||
|         if ($type === "string") { |         if ($type === "string") { | ||||||
|  |                 if(is_numeric($n)) { | ||||||
|  |                         return $n; | ||||||
|  |                 } | ||||||
|                 return "\"$n\"";
 |                 return "\"$n\"";
 | ||||||
|         } |         } | ||||||
|         if ($type === "array") { |         if ($type === "array") { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 throwaway
						throwaway