[pmwiki-users] Conditional processing of FoxForms

Martin Kerz mkerz at me.com
Fri Jul 3 11:41:06 CDT 2009


Dear Hans,

thanks a lot. Stupid me. The == did the job. :-)

Martin


Am 03.07.2009 um 18:06 schrieb Hans:

> Friday, July 3, 2009, 2:13:54 PM, Martin Kerz wrote:
>
>>   function FoxFixUploadFilter($pagename, $fields) {
>>     if ($fields['upfile_name']="")
>>        {
>>        $fields['upfile_name']="placeholder.png";
>>        };
>>     return $fields;
>>   }
>
> add a =
>
> function FoxFixUploadFilter($pagename, $fields) {
>     if ($fields['upfile_name'] == "")
>        {
>        $fields['upfile_name'] = "placeholder.png";
>         };
>      return $fields;
>    }
>
>
>  ~Hans
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2428 bytes
Desc: not available
Url : http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090703/d4eef9d2/attachment-0001.bin 


More information about the pmwiki-users mailing list