Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2001-04-18
2001-04-18 05:45:58 by Per Hedbor <ph@opera.com>
9d262a6a44b8b8d5189d56d6ff12b851701fb722 (
9
lines) (+
7
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed the `
[]
operator in the form scope.
Rev: server/etc/modules/Roxen.pmod:1.84
1:
// This is a roxen pike module. Copyright © 1999 - 2000, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
83
2001/04/
17
08
:
00
:
31
per Exp $
+
// $Id: Roxen.pmod,v 1.
84
2001/04/
18
05
:
45
:
58
per Exp $
#include <roxen.h> #include <config.h>
2873:
mixed `[]=( string index, mixed newval ) {
-
return
variables[ index ] = newval;
+
if(
arrayp( newval ) )
+
variables[ index ] = newval;
+
else
+
variables[ index ] = ({ newval });
+
return newval;
} mixed `[] (string what, void|RXML.Context ctx,