[pLog-svn] r4763 - plog/branches/lifetype-1.2/class/net
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Feb 18 15:29:52 EST 2007
Author: oscar
Date: 2007-02-18 15:29:52 -0500 (Sun, 18 Feb 2007)
New Revision: 4763
Modified:
plog/branches/lifetype-1.2/class/net/linkparser.class.php
Log:
Another minor code optimization.
Modified: plog/branches/lifetype-1.2/class/net/linkparser.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/net/linkparser.class.php 2007-02-18 20:27:50 UTC (rev 4762)
+++ plog/branches/lifetype-1.2/class/net/linkparser.class.php 2007-02-18 20:29:52 UTC (rev 4763)
@@ -73,7 +73,7 @@
preg_match_all("#\{(.+?)\}#", $this->_linkFormat, $tokens);
$result = array();
- for($i = 0; $i < count($tokens[1]); $i++) {
+ for($i = 0, $elements = count($tokens[1]); $i < $elements; $i++) {
$name = $tokens[1][$i];
if(isset($values[$i+1])){
$result["$name"] = $values[$i+1];
More information about the pLog-svn
mailing list