changeset 10 | 351d40b21cbc |
parent 0 | 9997bee9ad03 |
9:d58bafde2a92 | 10:351d40b21cbc |
---|---|
25 { |
25 { |
26 $hash = yms_val_sign($response, $api_key); |
26 $hash = yms_val_sign($response, $api_key); |
27 $result = "h={$hash}\n"; |
27 $result = "h={$hash}\n"; |
28 foreach ( $response as $key => $value ) |
28 foreach ( $response as $key => $value ) |
29 { |
29 { |
30 if ( $value === null ) |
|
31 { |
|
32 continue; |
|
33 } |
|
30 $result .= "{$key}={$value}\n"; |
34 $result .= "{$key}={$value}\n"; |
31 } |
35 } |
32 return trim($result); |
36 return trim($result); |
33 } |
37 } |
34 |
38 |