diff --git a/redirect.php b/redirect.php index 81d5100..92c733c 100644 --- a/redirect.php +++ b/redirect.php @@ -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);