Issue 16 in php-transmission-class: Trying to get property of non-object

0 views
Skip to first unread message

php-transmi...@googlecode.com

unread,
Jun 23, 2012, 3:16:06 PM6/23/12
to php-transmi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 16 by mariusva...@gmail.com: Trying to get property of non-object
http://code.google.com/p/php-transmission-class/issues/detail?id=16

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;
}



php-transmi...@googlecode.com

unread,
Jun 23, 2012, 4:05:03 PM6/23/12
to php-transmi...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 16 by brycied...@gmail.com: Trying to get property of
non-object
http://code.google.com/p/php-transmission-class/issues/detail?id=16

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

Reply all
Reply to author
Forward
0 new messages