SMS bugs solved

This commit is contained in:
Juan Ferrer Toribio 2017-12-19 10:24:21 +01:00
parent 723b584af9
commit 726b22dc73
3 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.405.53) stable; urgency=low
hedera-web (1.405.54) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.405.53",
"version": "1.405.54",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -11,7 +11,7 @@ class Sms extends Vn\Web\JsonRequest
const OK_STATES = [
0, // Ok
127 // Processing
200 // Processing
];
function run ($db)
@ -46,7 +46,7 @@ class Sms extends Vn\Web\JsonRequest
]
);
if (!in_array ($res->codigo, self::OK_STATES))
if (!in_array ((int) $res->codigo, self::OK_STATES))
throw new Lib\UserException ($res->descripcion);
return TRUE;