Skip to content

Commit c6c04eb

Browse files
committed
Fixed a bug with insecure connection notice
1 parent 7b4379c commit c6c04eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/pdf-ninja.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ public function get_api_version()
305305
public function get_ignore_ssl_errors()
306306
{
307307
if( $this->ignore_ssl_errors === null )
308-
$this->ignore_ssl_errors = boolval( get_option( 'pdf-forms-for-woocommerce-settings-pdf-ninja-ignore-ssl-errors', false ) );
308+
$this->ignore_ssl_errors = get_option( 'pdf-forms-for-woocommerce-settings-pdf-ninja-ignore-ssl-errors', 'no' ) == 'yes';
309309

310310
return $this->ignore_ssl_errors;
311311
}
@@ -316,7 +316,7 @@ public function get_ignore_ssl_errors()
316316
public function set_ignore_ssl_errors( $value )
317317
{
318318
$this->ignore_ssl_errors = $value;
319-
update_option( 'pdf-forms-for-woocommerce-settings-pdf-ninja-ignore-ssl-errors', $value );
319+
update_option( 'pdf-forms-for-woocommerce-settings-pdf-ninja-ignore-ssl-errors', $value ? 'yes' : 'no' );
320320
return true;
321321
}
322322

0 commit comments

Comments
 (0)