/[cvs]/nfo/php/libs/net.php.smarty/plugins/modifier.default.php
ViewVC logotype

Annotation of /nfo/php/libs/net.php.smarty/plugins/modifier.default.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Thu Dec 19 16:40:20 2002 UTC (21 years, 8 months ago) by joko
Branch: MAIN
Changes since 1.1: +1 -1 lines
+ updated to version 2.3.1

1 cvsjoko 1.1 <?php
2    
3     /*
4     * Smarty plugin
5     * -------------------------------------------------------------
6     * Type: modifier
7     * Name: default
8     * Purpose: designate default value for empty variables
9     * -------------------------------------------------------------
10     */
11     function smarty_modifier_default($string, $default = '')
12     {
13 joko 1.2 if (!isset($string) || $string == '')
14 cvsjoko 1.1 return $default;
15     else
16     return $string;
17     }
18    
19     /* vim: set expandtab: */
20    
21     ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed