X-Git-Url: https://git.treefish.org/banana.git/blobdiff_plain/fcea930220d4896e30baa93ee1603b08df1ff4d7..10fa45cd744a59490f4a7e4cb047589d9a8314c0:/admin/blackboard.php?ds=sidebyside diff --git a/admin/blackboard.php b/admin/blackboard.php index a28d8dc..6571f39 100644 --- a/admin/blackboard.php +++ b/admin/blackboard.php @@ -3,7 +3,7 @@ require 'include/db.inc'; require 'include/common.inc'; - if($_GET['mnumber']!="" && + if( isset($_GET['mnumber']) && $db->query("SELECT COUNT(*) FROM students WHERE mnumber=" . trim($_GET['mnumber']) . " AND lastblackboard=" . trim($_GET['tstamp']))->fetch(PDO::FETCH_NUM)[0] == 0) { if( $_GET['sign'] == 0 ) {