X-Git-Url: https://git.treefish.org/banana.git/blobdiff_plain/8db41c98817b1b48532dc3cebf4bea166e42bb70..7b7a9103e0252d7accb3c456e0f16e50ce3ace96:/include/usercheck.inc?ds=sidebyside
diff --git a/include/usercheck.inc b/include/usercheck.inc
index e6cab54..26ab851 100644
--- a/include/usercheck.inc
+++ b/include/usercheck.inc
@@ -1,22 +1,29 @@
query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 0) {
print '
';
print 'Mat.nummer not found |
---|
';
print '
';
print "Mat.Nummer was not found. You have to register first!";
- break;
+ exit;
}
if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber AND password = \"$password\"")->fetch(PDO::FETCH_NUM)[0] == 0) {
print '';
print 'wrong password |
---|
';
print '
';
- break;
+ exit;
}
?>
\ No newline at end of file