cvs: smarty /libs/plugins function.cycle.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1081367774@cvsserver>
messju		Wed Apr  7 15:56:14 2004 EDT

  Modified files:              
    /smarty/libs/plugins	function.cycle.php 
  Log:
  removed trailing spaces
  
  
http://cvs.php.net/diff.php/smarty/libs/plugins/function.cycle.php?r1=1.14&r2=1.15&ty=u
Index: smarty/libs/plugins/function.cycle.php
diff -u smarty/libs/plugins/function.cycle.php:1.14 smarty/libs/plugins/function.cycle.php:1.15
--- smarty/libs/plugins/function.cycle.php:1.14	Fri Dec 19 03:49:17 2003
+++ smarty/libs/plugins/function.cycle.php	Wed Apr  7 15:56:13 2004
@@ -23,7 +23,7 @@
  *         - delimiter = the value delimiter, default is ","
  *         - assign = boolean, assigns to template var instead of
  *                    printed.
- * 
+ *
  * Examples:<br>
  * <pre>
  * {cycle values="#eeeeee,#d0d0d0d"}
@@ -66,7 +66,7 @@
     $cycle_vars[$name]['delimiter'] = (isset($params['delimiter'])) ? $params['delimiter'] : ',';
     
     if(is_array($cycle_vars[$name]['values'])) {
-        $cycle_array = $cycle_vars[$name]['values'];    
+        $cycle_array = $cycle_vars[$name]['values'];
     } else {
         $cycle_array = explode($cycle_vars[$name]['delimiter'],$cycle_vars[$name]['values']);
     }
@@ -88,7 +88,7 @@
 
     if($advance) {
         if ( $cycle_vars[$name]['index'] >= count($cycle_array) -1 ) {
-            $cycle_vars[$name]['index'] = 0;            
+            $cycle_vars[$name]['index'] = 0;
         } else {
             $cycle_vars[$name]['index']++;
         }

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.