Commit 6fd3ca1c authored by Erick Hitter's avatar Erick Hitter
Browse files

Better detection of SMS availability.

parent 1da24ae9
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment