Roxen.git/
server/
etc/
modules/
Variable.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-28
2000-09-28 03:43:35 by Per Hedbor <ph@opera.com>
4e3dd000dbbbd5740c5334325db5b7a5647133c4 (
13
lines) (+
6
/-
7
)
[
Show
|
Annotate
]
Branch:
2.1
Better fix for spurious '0' problem
Rev: server/etc/modules/Variable.pmod/module.pmod:1.25
1:
-
// $Id: module.pmod,v 1.
24
2000/09/28 03:
40
:
33
per Exp $
+
// $Id: module.pmod,v 1.
25
2000/09/28 03:
43
:
35
per Exp $
#include <module.h> #include <roxen.h>
209:
void add_warning( string to ) //! Like set_warning, but adds to the current warning, if any. {
-
if(
!
to)
-
set_warning(
0 );
-
else
-
set_warning
(
(
get_warnings()||"") + to );
+
if(to) set_warning( (get_warnings()||"") + to );
} int set( mixed to )
346:
"from verify_set_from_form\n" ); return; }
-
if( b )
{
-
if
(
b[0]
)
set_warning( b[0] );
+
if( b )
+
{
+
set_warning( b[0] );
set( b[1] ); } }