Mercurial > hg > fapweb
changeset 836:83ac4155efe2
Fix handling of CHK_ARRAY case in stChkRequestItem*().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 Nov 2014 20:12:37 +0200 |
parents | 1cc9af3f90f0 |
children | fc042c32b38d |
files | msitegen.inc.php |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/msitegen.inc.php Tue Nov 25 18:57:16 2014 +0200 +++ b/msitegen.inc.php Tue Nov 25 20:12:37 2014 +0200 @@ -443,7 +443,6 @@ case CHK_ISLT: case CHK_ISGT: case CHK_ISEQ: case CHK_GTEQ: case CHK_LTEQ: case CHK_RANGE: - case CHK_ARRAY: // Check length or value of the data switch ($check[1]) { @@ -464,7 +463,7 @@ break; case CHK_ARRAY: - if (!in_array($data, $check[1], TRUE)) + if (!in_array($data, $check[2], TRUE)) return stErrorStrF($check[3], $data); break;