[pLog-svn] r991 - plog/trunk/class/net

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Feb 8 11:44:42 GMT 2005


Author: ork
Date: 2005-02-08 11:44:41 +0000 (Tue, 08 Feb 2005)
New Revision: 991

Modified:
   plog/trunk/class/net/url.class.php
Log:
parse_url will not set all fields.. e.g. port might not be set.. so
we'll just add a little check 


Modified: plog/trunk/class/net/url.class.php
===================================================================
--- plog/trunk/class/net/url.class.php	2005-02-08 11:00:31 UTC (rev 990)
+++ plog/trunk/class/net/url.class.php	2005-02-08 11:44:41 UTC (rev 991)
@@ -57,8 +57,10 @@
 
 			// this saves us time ;)
 			foreach( $keys as $key ) {
-				$line = "\$this->_$key = \$parts[\"$key\"];";
-				eval($line);
+                if (isset($parts[$key])) {
+                    $line = "\$this->_$key = \$parts[\"$key\"];";	
+                    eval($line);
+                }
 			}
 		}
 




More information about the pLog-svn mailing list