Permalink
Browse files

isset && only if true

  • Loading branch information...
1 parent 3aea7f0 commit 4f7a5d1a96be65d828ca4a169d71970ddd60bc6a @jeffsebring jeffsebring committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tgm-plugin-activation/class-tgm-plugin-activation.php
@@ -625,7 +625,7 @@ public function notices() {
$activate_link = true; // We need to display the 'activate' action link
$activate_link_count++; // Increment the activate link count
if ( current_user_can( 'activate_plugins' ) ) {
- if ( isset( $plugin['required'] ) )
+ if ( ( isset( $plugin['required'] ) ) && ( $plugin['required'] ) )
$message['notice_can_activate_required'][] = $plugin['name'];
/** This plugin is only recommended */
else {

0 comments on commit 4f7a5d1

Please sign in to comment.