svn: /pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ ReleaseFileBrowser.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Thu, 15 Jul 2010 17:48:38 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=301295

Log:
If version is an empty string, don't try to set package version.

Changed paths:
    U   pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ReleaseFileBrowser.php

Modified: pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ReleaseFileBrowser.php
===================================================================
--- pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ReleaseFileBrowser.php	2010-07-15 17:47:17 UTC (rev 301294)
+++ pear2/sandbox/SimpleChannelFrontend/trunk/src/SimpleChannelFrontend/ReleaseFileBrowser.php	2010-07-15 17:48:38 UTC (rev 301295)
@@ -17,7 +17,9 @@
         $channel       = $options['frontend']::$channel;
         $this->package = $channel->remotepackage[$options['package']];

-        if (isset($options['packageVersion'])) {
+        if (   isset($options['packageVersion'])
+            && $options['packageVersion'] != ''
+        ) {
             // try to set specified version
             try {
                 $this->package->setRawVersion(
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.