Index: formatting.php
===================================================================
--- formatting.php	(revision 8781)
+++ formatting.php	(working copy)
@@ -2019,14 +2019,15 @@
 	$result = array_shift($args);
 	if ( count($args) == 1 )
 		$result .= $l['between_only_two'] . array_shift($args);
-	// Loop when more than two args
-	while ( count($args) ) {
+
+	while ( $i = count($args) ) {
 		$arg = array_shift($args);
 		if ( $i == 1 )
 			$result .= $l['between_last_two'] . $arg;
 		else
 			$result .= $l['between'] . $arg;
 	}
+
 	return $result . substr($pattern, 2);
 }
 
