[pLog-svn] r3864 - plog/trunk/class/template/smarty/plugins

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat Aug 12 14:27:20 GMT 2006


Author: oscar
Date: 2006-08-12 14:27:19 +0000 (Sat, 12 Aug 2006)
New Revision: 3864

Modified:
   plog/trunk/class/template/smarty/plugins/function.pager.php
Log:
The previous did not print anything if there was no $pager object, so this one should do the same.

Modified: plog/trunk/class/template/smarty/plugins/function.pager.php
===================================================================
--- plog/trunk/class/template/smarty/plugins/function.pager.php	2006-08-12 13:43:05 UTC (rev 3863)
+++ plog/trunk/class/template/smarty/plugins/function.pager.php	2006-08-12 14:27:19 UTC (rev 3864)
@@ -13,7 +13,7 @@
 		if( isset( $smarty->_tpl_vars["pager"] ))
 			$pager = $smarty->_tpl_vars["pager"];
 		else
-			$smarty->trigger_error( "'data' parameter missing for pager!" );			
+			return( "" );
 	}
 	
 	// Style parameter. It can either "links", "list", "forwardonly" and "backonly"



More information about the pLog-svn mailing list