Resource icon

Facebook SDK updates for xenForo

Code:
if($_GET['fbrefresh']){
$canological_url = '?refresh='.$_GET['fbrefresh'];
}else {
$canological_url = '';
}

To prevent undefined index notice, This should be:

Code:
if(isset($_GET['fbrefresh'])){
$canological_url = '?refresh='.$_GET['fbrefresh'];
}else {
$canological_url = '';
}
Yep, I just converted to nginx and the undefined index was driving me CRAZY in the log. After researching (and I'm not a coder by far) I stumbled upon the if(ifset code and once I put it into place ALL errors stopped. My log had gone to 256MB in just a matter of a short time before the code change.
 
Back
Top Bottom