diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-21 13:48:05 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-21 13:48:05 +0000 |
| commit | dad2244d930143c045c9567a2a2d9839b62145a2 (patch) | |
| tree | b36bfb5cf9d9f9c6bff96dccad4360687b70ea7f /update/library/trunk | |
| parent | f5834cbf384bc295362f0d664195ee1726def10d (diff) | |
| download | instadisc-dad2244d930143c045c9567a2a2d9839b62145a2.tar.gz instadisc-dad2244d930143c045c9567a2a2d9839b62145a2.tar.bz2 instadisc-dad2244d930143c045c9567a2a2d9839b62145a2.zip | |
Update: Fixed $resp value receipt
Previously, the return value was recieved by $resp->value(), but that returned an xmlrpcval, not an int. The proper method is $resp->value()->scalarVal(). Refs #44
Diffstat (limited to 'update/library/trunk')
| -rw-r--r-- | update/library/trunk/instadisc.php | 5 |
1 files changed, 3 insertions, 2 deletions
| diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index cfb6473..1d8e44a 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php | |||
| @@ -31,11 +31,12 @@ function instaDisc_sendItem($id, $title, $author, $url, $semantics, $encryptionI | |||
| 31 | new xmlrpcval(serialize($semantics), 'string'), | 31 | new xmlrpcval(serialize($semantics), 'string'), |
| 32 | new xmlrpcval($encryptionID, 'int'))); | 32 | new xmlrpcval($encryptionID, 'int'))); |
| 33 | $resp = $client->send($msg); | 33 | $resp = $client->send($msg); |
| 34 | $val = $resp->value()->scalarVal(); | ||
| 34 | 35 | ||
| 35 | if ($resp->value() == 2) | 36 | if ($val == 2) |
| 36 | { | 37 | { |
| 37 | return instaDisc_sendItem($id, $title, $author, $url, $semantics, $encryptionID); | 38 | return instaDisc_sendItem($id, $title, $author, $url, $semantics, $encryptionID); |
| 38 | } else if ($resp->value() == 0) | 39 | } else if ($val == 0) |
| 39 | { | 40 | { |
| 40 | return TRUE; | 41 | return TRUE; |
| 41 | } else { | 42 | } else { |
