Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Authy for WP
Commits
6fd3ca1c
Commit
6fd3ca1c
authored
Dec 03, 2012
by
Erick Hitter
Browse files
Better detection of SMS availability.
parent
1da24ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
authy-wp.php
View file @
6fd3ca1c
...
...
@@ -322,7 +322,7 @@ class Authy_WP {
* @return null
*/
protected
function
check_sms_availability
()
{
if
(
503
!=
$this
->
api
->
send_sms
(
1
)
)
if
(
!
in_array
(
$this
->
api
->
send_sms
(
1
),
array
(
503
,
false
)
)
)
$this
->
sms
=
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment