Fix PHP error on redirect
This commit is contained in:
+2
-2
@@ -78,7 +78,7 @@ STR;
|
||||
}
|
||||
|
||||
// Try and identify a redirect by the path.
|
||||
$STATEMENTS['LookUp']->bind_param('s', $url_parts->path);
|
||||
$STATEMENTS['LookUp']->bind_param('s', $url_parts["path"]);
|
||||
if (!$STATEMENTS['LookUp']->execute()) {
|
||||
header("Service Unavailable", true, 503);
|
||||
header("Retry-After: 30", true);
|
||||
@@ -94,7 +94,7 @@ STR;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$STATEMENTS['Insert']->bind_param('s', $url_parts->path);
|
||||
$STATEMENTS['Insert']->bind_param('s', $url_parts["path"]);
|
||||
if (!$STATEMENTS['Insert']->execute()) {
|
||||
header("Service Unavailable", true, 503);
|
||||
header("Retry-After: 30", true);
|
||||
|
||||
Reference in New Issue
Block a user