Skip to content

Commit 86f56f4

Browse files
mikelittlermccue
andauthored
Update inc/namespace.php
Co-authored-by: Ryan McCue <me@ryanmccue.info>
1 parent d498d29 commit 86f56f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inc/namespace.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ function on_plugins_loaded() {
4747
$secret_key = Altis\get_variable( 'PATCHSTACK_SECRETKEY' );
4848
if ( $client_id && $secret_key ) {
4949
// check if the plugin is already connected
50-
if ( ( get_option( 'patchstack_clientid', false ) == false ) ||
51-
( get_option( 'patchstack_secretkey', false ) == false ) ) {
50+
if ( get_option( 'patchstack_clientid', false ) === false || get_option( 'patchstack_secretkey', false ) == false ) {
5251
// set the client id and secret key
5352
update_option( 'patchstack_clientid', $client_id );
5453
update_option( 'patchstack_secretkey', $secret_key );

0 commit comments

Comments
 (0)