svn: /pear/pearweb/trunk/cron/ find-documentation.php
| From: | David JEAN LOUIS | Date: | Mon, 12 Apr 2010 09:16:08 +0000 |
| Subject: | svn: /pear/pearweb/trunk/cron/ find-documentation.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9374@lists.php.net to get a copy of this message | ||
izi Mon, 12 Apr 2010 09:16:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=297869
Log:
Make sure the script only update the package if the url is not empty.
Changed paths:
U pear/pearweb/trunk/cron/find-documentation.php
Modified: pear/pearweb/trunk/cron/find-documentation.php
===================================================================
--- pear/pearweb/trunk/cron/find-documentation.php 2010-04-12 09:09:33 UTC (rev 297868)
+++ pear/pearweb/trunk/cron/find-documentation.php 2010-04-12 09:16:08 UTC (rev 297869)
@@ -103,7 +103,9 @@
$url = $response->getStatus() != 404 ? $new_url : '';
}
- $res = $dbh->execute($update, array($url, $matches1[1]));
+ if ($url) {
+ $res = $dbh->execute($update, array($url, $matches1[1]));
+ }
}
}
}