Re: [SMARTY] new plugin: mailto

From: Date: Wed, 22 May 2002 17:44:24 +0000
Subject: Re: [SMARTY] new plugin: mailto
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4361@lists.php.net to get a copy of this message
I had thought about using is_array(), but as $mail_parms is set explicitly to array() earlier in the code, it didn't seem like a very useful check. Now if that initial assignment is removed, and $mail_parms is left to become an array at the first value assignment, then it'd work. > > Yeah, I was thinking !empty($mail_params) but is_array would work too, > and probably more accurate anyway. > > Robert Amos wrote: > > since you're talking performance > > > > if (is_array($mail_params)) > > { > > $address .= '?' . implode('&', $mail_params); > > } > > > > saves php determining the count > > > > -bok > > -- > Monte Ohrt <monte@ispi.net> > Director of Technology, ispi Inc.

« previous php.smarty.general (#4361) next »