Throws exceptions.
authorJan Schneider <jan@horde.org>
Mon, 27 Sep 2010 15:59:14 +0000 (17:59 +0200)
committerJan Schneider <jan@horde.org>
Mon, 27 Sep 2010 16:58:02 +0000 (18:58 +0200)
framework/Release/lib/Horde/Release/Whups.php

index 615cd91..5d5eb23 100644 (file)
@@ -95,15 +95,13 @@ class Horde_Release_Whups
      */
     protected function _listQueues()
     {
-        $method = 'tickets.listQueues';
-        $result = Horde_Rpc::request('jsonrpc', $this->_params['url'], $method,
-                                     null, array('user' => $this->_params['user'],
-                                                 'pass' => $this->_params['pass']));
-        if ($result instanceof PEAR_Error) {
-            throw new Horde_Exception_Prior($result);
-        }
-
-        return $result->result;
+        return Horde_Rpc::request('jsonrpc',
+                                  $this->_params['url'],
+                                  'tickets.listQueues',
+                                  null,
+                                  array('user' => $this->_params['user'],
+                                        'pass' => $this->_params['pass']))
+            ->result;
     }
 
 }