Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moar WP_DEBUG notice fixes

Check that the key exists before to access array
  • Loading branch information...
commit 31f5961fbe6672bacee545f8f1cee4e2437df083 1 parent da39610
@jeherve authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-fb-applications.php
View
2  wp-fb-applications.php
@@ -120,7 +120,7 @@ function werewp_fbappappparameters() {
function werewp_save_details(){
global $post;
- if ( $post->post_type == 'werewp_fbapp' ) {
+ if (isset($post) && $post->post_type == 'werewp_fbapp') {
update_post_meta($post->ID, 'appid', $_POST['appid']);
update_post_meta($post->ID, 'appsecret', $_POST['appsecret']);
update_post_meta($post->ID, 'fbcomments', $_POST['fbcomments']);
Please sign in to comment.
Something went wrong with that request. Please try again.