[pLog-svn] r6970 - plog/branches/lifetype-1.2/class/net

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Wed Jan 27 17:59:07 EST 2010


Author: jondaley
Date: 2010-01-27 17:59:06 -0500 (Wed, 27 Jan 2010)
New Revision: 6970

Modified:
   plog/branches/lifetype-1.2/class/net/linkformatmatcher.class.php
Log:
we need to match this explicitly, since an empty array (root url with paging suffix) would look like an unmatched URL

Modified: plog/branches/lifetype-1.2/class/net/linkformatmatcher.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/net/linkformatmatcher.class.php	2010-01-27 13:12:51 UTC (rev 6969)
+++ plog/branches/lifetype-1.2/class/net/linkformatmatcher.class.php	2010-01-27 22:59:06 UTC (rev 6970)
@@ -45,7 +45,7 @@
             foreach( $this->_formats as $key => $format ) {
                 $lp = new LinkParser( $format );
                 $params = $lp->parseLink( $this->_request );
-                if( $params ) {
+                if( $params !== false ) {
                     // return the key assigned to the format that matched
                     $this->_params = $params;
                     return $key;



More information about the pLog-svn mailing list