Permalink
Browse files

use isset to stop undefined index notice

  • Loading branch information...
1 parent 40bf192 commit 3aea7f05eb3d687170e6ff028e77815620758051 @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 ( $plugin['required'] )
+ if ( isset( $plugin['required'] ) )
$message['notice_can_activate_required'][] = $plugin['name'];
/** This plugin is only recommended */
else {

0 comments on commit 3aea7f0

Please sign in to comment.