diff options
-rw-r--r-- | class-Clockwork.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/class-Clockwork.php b/class-Clockwork.php index 1bf5a49..22c1e8b 100644 --- a/class-Clockwork.php +++ b/class-Clockwork.php @@ -24,7 +24,7 @@ class Clockwork { /* * Version of this class */ - const VERSION = 1.0.0; + const VERSION = '1.0.0'; /** * All Clockwork API calls start with BASE_URL @@ -258,7 +258,12 @@ class Clockwork { break; } } - $resp['success'] = !array_key_exists('error_code', $sms); + if( array_key_exists('error_code', $resp ) ) + { + $resp['success'] = 0; + } else { + $resp['success'] = 1; + } $resp['sms'] = $sms[$wrapper_id]; array_push($response, $resp); break; |