Skip to content
PHP Class for the Transmission Daemon RPC interface
PHP
Latest commit a38e845 Mar 24, 2016 @brycied00d Correctly handle/remove empty parameters in requests
There were two issues with the previous empty check:
1. An empty string is loosely cast to numeric 0, meaning that `if( empty( $value ) && $value != 0 )` would detect `$value` as empty but having a value of `0`, failing that test and moving on to others, which leads me to...
2. `if( is_string( $value ) )` ends up re-adding the element even if it was `unset()` because `$value` was still a string, albeit an empty one.

Fixes #26
Failed to load latest commit information.
class
LICENCE Initial version Jun 30, 2010
tests.php Update tests.php Nov 5, 2013
thepiratebay-example.php
Something went wrong with that request. Please try again.