]> granicus.if.org Git - php/commitdiff
- fix bad revert and make the xmlrpc ext detections fallback
authorPierre Joye <pajoye@php.net>
Thu, 18 Aug 2005 21:29:28 +0000 (21:29 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 18 Aug 2005 21:29:28 +0000 (21:29 +0000)
  forgot that 5.1 still has pear in its branche

pear/PEAR/Remote.php

index 8becb4e70ffbcc6c3299ba65cb6bcaabc74e4bc3..a42750af7c2c46319b1d4bb240f23449d65b26f6 100644 (file)
@@ -115,9 +115,10 @@ class PEAR_Remote extends PEAR
                 $this->saveCache($_args, $result);
             };
             return $result;
+        } else {
+            return $this->raiseError("For this remote PEAR operation you need to load the xmlrpc extension or install XML_RPC");
         }
-        if (!@include_once("XML/RPC.php")) {
-            return $this->raiseError("For this remote PEAR operation you need to install the XML_RPC package");
+
         array_shift($args);
         $server_host = $this->config->get('master_server');
         $username = $this->config->get('username');