Branch: Tag:

1997-11-13

1997-11-13 23:28:50 by David Hedbor <david@hedbor.org>

If "current" is set, but isn't a string, make it one. Useful for
example if you restore a mapping where the toggles are saved as ints.

Rev: server/base_server/wizard.pike:1.46

1: - /* $Id: wizard.pike,v 1.45 1997/11/06 06:09:20 neotron Exp $ + /* $Id: wizard.pike,v 1.46 1997/11/13 23:28:50 neotron Exp $    * name="Wizard generator";    * doc="This file generats all the nice wizards";    */
15:    id = a;       string current = id->variables[m->name] || m["default"]; -  +  if(current) +  current = current +"";    switch(m->type)    {    default: // String or password field....