Changeset 1900
- Timestamp:
- 02/02/2008 01:19:56 AM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/html.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/html.php
r1825 r1900 52 52 public static function query_string($array) 53 53 { 54 if (empty($array) OR ! is_array($array)) 55 return ''; 56 57 $string = array(); 58 59 foreach($array as $key => $value) 60 { 61 $string[] = $key.'='.rawurlencode($value); 62 } 63 64 return implode('&', $string); 54 return http_build_query($array); 65 55 } 66 56
