Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
check if varaible is set before checking license #20
Browse files Browse the repository at this point in the history
  • Loading branch information
daronspence committed Jan 15, 2016
1 parent 4714185 commit a00c366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function acfw_update_slug( $data, $postarr ) {
// Check license once on login
add_action('wp_login', 'acfw_login_check', 10, 2);
function acfw_login_check($login, $user){
if ( $user->allcaps['update_plugins'] && !defined('ACFW_INCLUDE') ){
if ( isset( $user->allcaps['update_plugins'] ) && $user->allcaps['update_plugins'] && ! defined('ACFW_INCLUDE') ){
acfw_check_license();
}
} // end login license check
Expand Down

0 comments on commit a00c366

Please sign in to comment.