Fix PHP error on redirect

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-06-21 19:57:02 +02:00
parent baf58081f0
commit fd55d974c4
+2 -2
View File
@@ -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);