PHP Notices
-
This is just a suggestion, as this line of code was clogging my error logs with notices (yah, i have notices turned on).
index.php line 256, perhaps wrap this:
if ($token = get_option('WordCents_oauth_token'.$current_user->ID) || (isset($_GET['code']) && isset($_GET['auth_plugin']) && $_GET['auth_plugin'] == 'wordcents') || isset($apiAuthCredentials[$apiAuthCredentialTypes[$_POST['WordCents_account_id']]])) { $auth = new AdSenseAuth(); $auth->authenticate($current_user->ID); if (isset($_GET['code']) && isset($_GET['auth_plugin']) && $_GET['auth_plugin'] == 'wordcents') header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);//REQUEST_URI (without code) }
with this:
if( isset($_POST['WordCents_account_id']) ) { .... }
$_POST['WordCents_account_id']
has to be checked if its set or not before you can check if$apiAuthCredentialTypes[$_POST['WordCents_account_id']]
is set.Anyway, it would be great to see this in future releases so that my local fixes don’t get blasted away on update. Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Notices’ is closed to new replies.