cvs: pearweb /public_html/qa packages_orphan.php
| From: | Arnaud Limbourg | Date: | Sun, 20 Nov 2005 21:25:06 +0000 |
| Subject: | cvs: pearweb /public_html/qa packages_orphan.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-36417@lists.php.net to get a copy of this message | ||
arnaud Sun Nov 20 16:25:06 2005 EDT
Modified files:
/pearweb/public_html/qa packages_orphan.php
Log:
display message if there are no orphan packages found and exit
http://cvs.php.net/diff.php/pearweb/public_html/qa/packages_orphan.php?r1=1.3&r2=1.4&ty=u
Index: pearweb/public_html/qa/packages_orphan.php
diff -u pearweb/public_html/qa/packages_orphan.php:1.3
pearweb/public_html/qa/packages_orphan.php:1.4
--- pearweb/public_html/qa/packages_orphan.php:1.3 Sun Nov 20 16:22:48 2005
+++ pearweb/public_html/qa/packages_orphan.php Sun Nov 20 16:25:05 2005
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Arnaud Limbourg <arnaud@limbourg.com> |
+----------------------------------------------------------------------+
- $Id: packages_orphan.php,v 1.3 2005/11/20 21:22:48 arnaud Exp $
+ $Id: packages_orphan.php,v 1.4 2005/11/20 21:25:05 arnaud Exp $
*/
/**
@@ -31,6 +31,12 @@
"WHERE p.unmaintained=1 AND p.package_type = 'pear' AND p.approved = 1 ".
"ORDER BY p.name", null, DB_FETCHMODE_ASSOC);
+if (count($packages) == 0) {
+ echo '<p>There are no orphan packages</p>';
+ response_footer();
+ exit();
+}
+
echo "<h3>List of orphan packages</h3>\n";
$text_mode = '';