Commit f2f43413 authored by Michael Ochmann's avatar Michael Ochmann

fixed num_rows issue

parent 238ca717
......@@ -22,6 +22,7 @@ class Redirector {
$shortcode
);
$query->execute();
$query->store_result();
if ($query->num_rows == 0) {
header("Location: ./", 404);
......
<?php
session_start();
define("DEBUG", true);
require_once("classes/URLShortener.php");
new \FSI\URLShortener();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment