fixed problems with empty values
This commit is contained in:
		
							parent
							
								
									0f7a864415
								
							
						
					
					
						commit
						d9ecf3bd45
					
				|  | @ -209,7 +209,12 @@ function saveUserProfile($attributes, $profile) { | |||
|   	// write attributes
 | ||||
| 		$keys = array_keys($attributes); | ||||
| 		for ($i = 0; $i < sizeof($keys); $i++) { | ||||
| 			if (isset($attributes[$keys[$i]])) { | ||||
| 				$line = $keys[$i] . ": " . implode("+::+", $attributes[$keys[$i]]) . "\n"; | ||||
| 			} | ||||
| 			else { | ||||
| 				$line = $keys[$i] . ": "; | ||||
| 			} | ||||
| 			fputs($file, $line); | ||||
| 		} | ||||
| 		// close file
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue