commit | 2a26cd7112b62f6bf6f6ced047097a1476dc1248 | [log] [tgz] |
---|---|---|
author | Andreu <andreuhuguet@gmail.com> | Sun Sep 22 01:58:23 2019 +0200 |
committer | Andreu <andreuhuguet@gmail.com> | Sun Sep 22 01:58:23 2019 +0200 |
tree | b7577f82073ad8bd964ff99ff03fc678cba758f0 | |
parent | ef5af2da913038a08562b23cab8ec57681833d95 [diff] [blame] |
Relational algebra bug
diff --git a/index.php b/index.php index 0fe24b7..a604fda 100644 --- a/index.php +++ b/index.php
@@ -27,9 +27,9 @@ $("#list").html(data); userid = <?=isset($_COOKIE['user']) ? $_COOKIE['user'] : -1 ?>; + username = $('option[value=' + userid + ']').text(); if (userid > 0) { - username = $('option[value=' + userid + ']').text(); redir = confirm("Has entrat com a usuari " + username + " anteriorment, vols tornar-ho a fer?"); if (redir) window.location.href = 'main.php'; }