hamedramzi / php-transmission-class

Automatically exported from code.google.com/p/php-transmission-class
0 stars 0 forks source link

Trying to get property of non-object #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set return_as_array to true
2. Enable error reporting

What is the expected output? What do you see instead?
I get the error:

Notice: Trying to get property of non-object

I would expect to get no errors at all.

What version of the product are you using?
Version 0.3

Please provide any additional information below.

On line 605 you find:

    $this->rpc_version = self::sget()->arguments->rpc_version;

Replace that with:

    if ($this->return_as_array) {
        $this->rpc_version = $data['arguments']['rpc-version'];
    } else {
        $this->rpc_version = $data->arguments->rpc_version;
    }

Original issue reported on code.google.com by mariusva...@gmail.com on 23 Jun 2012 at 7:15

GoogleCodeExporter commented 9 years ago
This Google Code project is closed. Any development has been moved to GitHub, 
as noted on the main page.

Original comment by brycied...@gmail.com on 23 Jun 2012 at 8:04