https://src.bluestatic.org
/
isso.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f907f4
)
Allow strings to be returned as errors in set()-based verification
author
Robert Sesek <rsesek@bluestatic.org>
Sun, 12 Mar 2006 23:53:54 +0000
(23:53 +0000)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 12 Mar 2006 23:53:54 +0000
(23:53 +0000)
api.php
patch
|
blob
|
history
diff --git
a/api.php
b/api.php
index 19fb408dc91c9c5b357b7e43d92390fe7b84d590..69cc33542fd1cf35784eaa7c4f8a280219aaec0e 100644
(file)
--- a/
api.php
+++ b/
api.php
@@
-275,9
+275,16
@@
class API
$verify = $this->{$this->fields["$field"][F_VERIFY]}($field);
}
- if (
!$verify
)
+ if (
$verify !== true
)
{
- $this->error(sprintf($this->registry->modules['localize']->string('Validation of %1$s failed'), $field));
+ if ($verify === false)
+ {
+ $this->error(sprintf($this->registry->modules['localize']->string('Validation of %1$s failed'), $field));
+ }
+ else
+ {
+ $this->error($verify);
+ }
}
}
}