Skip to content

Commit

Permalink
(Fix) warnings about unset querystring variable when launching a sess…
Browse files Browse the repository at this point in the history
…ion with no parameters.
  • Loading branch information
akalsey committed Jun 6, 2012
1 parent 2f9d061 commit dc88950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tropo-rest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ protected function getBaseURL() {
*/
public function createSession($token, Array $params = null) {

$querystring = '';
if(isset($params)) {
foreach ($params as $key=>$value) {
@ $querystring .= '&'. urlencode($key) . '=' . urlencode($value);
Expand Down

0 comments on commit dc88950

Please sign in to comment.