Skip to content

Commit

Permalink
use isset to stop undefined index notice
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsebring committed Mar 15, 2012
1 parent 40bf192 commit 3aea7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgm-plugin-activation/class-tgm-plugin-activation.php
Expand Up @@ -625,7 +625,7 @@ public function notices() {
$activate_link = true; // We need to display the 'activate' action link $activate_link = true; // We need to display the 'activate' action link
$activate_link_count++; // Increment the activate link count $activate_link_count++; // Increment the activate link count
if ( current_user_can( 'activate_plugins' ) ) { if ( current_user_can( 'activate_plugins' ) ) {
if ( $plugin['required'] ) if ( isset( $plugin['required'] ) )
$message['notice_can_activate_required'][] = $plugin['name']; $message['notice_can_activate_required'][] = $plugin['name'];
/** This plugin is only recommended */ /** This plugin is only recommended */
else { else {
Expand Down

0 comments on commit 3aea7f0

Please sign in to comment.