From dad2244d930143c045c9567a2a2d9839b62145a2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 21 Aug 2008 13:48:05 +0000 Subject: 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 --- update/library/trunk/instadisc.php | 5 +++-- 1 file 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 new xmlrpcval(serialize($semantics), 'string'), new xmlrpcval($encryptionID, 'int'))); $resp = $client->send($msg); + $val = $resp->value()->scalarVal(); - if ($resp->value() == 2) + if ($val == 2) { return instaDisc_sendItem($id, $title, $author, $url, $semantics, $encryptionID); - } else if ($resp->value() == 0) + } else if ($val == 0) { return TRUE; } else { -- cgit 1.4.1