Skip to content

Commit

Permalink
Predefine string variable we plan on adding to
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Jun 4, 2011
1 parent 071c7cc commit 4182bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpSmug.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ private function generate_signature( $apicall, $apiargs = NULL )
uksort( $params, 'strnatcmp' );
// We can't use implode() here as it plays havoc with array keys with empty values.
$count = count( $params );
$string = '';
foreach ( $params as $key => $value ) {
$count--;
$string .= $key . '=' . $value;
Expand Down Expand Up @@ -1536,4 +1537,4 @@ private function _unchunk( $body )
}
}

?>
?>

0 comments on commit 4182bd8

Please sign in to comment.