Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1334:    mapping get_translation_table( )    //! Get the lookup table. Used by this class as well.    //! You can overload this function if you want a dynamic table.    {    return _table;    }       int(0..1) set_from_form(RequestID id, void|int(0..1) force)    {    if (!multiselect) return ::set_from_form(id); -  bool save = !!id->variables["save.x"]; -  if (!save && !id->real_variables[path()]) return 0; +  if (!id->real_variables[path()]) return 0;    set_warning(0);    mapping(string:string) m = get_form_vars(id);    array(mixed) values = ({});    foreach(id->real_variables[path()] || ({}), string form_val) {    mixed val = transform_from_form(form_val, m);    array b = ({ 0, val });    mixed err = catch { b = verify_set_from_form(val); };    if (err) {    add_warning(err);    return 0;