cvs: pearbot /modules pearcvscommits.php

[email protected] ("Amir Mohammad Saied") Sun, 04 May 2008 22:19:56 -0000
Newsgroups php.pear.cvs
Message-ID <cvsamir1209939596@cvsserver>
amir		Sun May  4 22:19:56 2008 UTC

  Modified files:              
    /pearbot/modules	pearcvscommits.php 
  Log:
  Fixing a typo, removing the second unnecessary call
  
http://cvs.php.net/viewvc.cgi/pearbot/modules/pearcvscommits.php?r1=1.1&r2=1.2&diff_format=u
Index: pearbot/modules/pearcvscommits.php
diff -u pearbot/modules/pearcvscommits.php:1.1 pearbot/modules/pearcvscommits.php:1.2
--- pearbot/modules/pearcvscommits.php:1.1	Sun May  4 21:41:03 2008
+++ pearbot/modules/pearcvscommits.php	Sun May  4 22:19:56 2008
@@ -1,9 +1,9 @@
 <?php
 /**
- * $Id: pearcvscommits.php,v 1.1 2008/05/04 21:41:03 amir Exp $
- * $Revision: 1.1 $
+ * $Id: pearcvscommits.php,v 1.2 2008/05/04 22:19:56 amir Exp $
+ * $Revision: 1.2 $
  * $Author: amir $
- * $Date: 2008/05/04 21:41:03 $
+ * $Date: 2008/05/04 22:19:56 $
  *
  * Copyright (c) 2008 Amir Mohammad Saied <[email protected]>
  */
@@ -16,7 +16,7 @@
     var $name = 'pearcvscommits';
     var $description = 'Will return PEAR CVS commits';
     var $author = 'Amir Mohammad Saied <[email protected]>';
-    var $version = '$Revision: 1.1 $';
+    var $version = '$Revision: 1.2 $';
     var $license = 'GPL';
 
     var $lastMessageID  = 0;
@@ -92,8 +92,8 @@
         $feed = 'http://news.php.net/group.php?group=php.pear.cvs&format=rss';
         $req  =& new HTTP_Request($feed);
         $req->setMethod(HTTP_REQUEST_METHOD_GET);
-        $req->sendRequest();
-        if (PEAR::isError($req->sendRequest())) {
+        $reqError = $req->sendRequest();
+        if (PEAR::isError($reqError)) {
             return PEAR::raiseError("Connection failed", 0);
         }