Commit 172a1593 authored by carboncrafters's avatar carboncrafters

small fixes possibly

parent 4655b566
......@@ -101,15 +101,19 @@ $conn->close();
$title = $row["name"];
$deleted = $row["deleted"];
$date = $row["date"];
$views = $row["views"];
$description = $row["descr"];
$uid = $row["user"];
$id = $row["id"];
}
if ($deleted=="0") {
$return["id"] = $row["id"];
$return["id"] = $id;
$return["title"] = $title;
$return["upload_date"] = $row["date"];
$return["views"] = $row["views"];
$return["description"] = $row["descr"];
$return["uid"] = $row["user"];
$return["upload_date"] = $date;
$return["views"] = $views;
$return["description"] = $descr;
$return["uid"] = $user;
echo json_encode($return);
}else{
......
......@@ -31,7 +31,7 @@ function getCookie(name) {
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie(language), true);
xmlhttp.open("GET", "https://emalm.com/api/?get=menu&language="+getCookie("language"), true);
xmlhttp.send();
</script>
<nav class="navbar navbar-inverse navbar-top">
......
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