X-Git-Url: http://git.treefish.org/banana.git/blobdiff_plain/e9f2c65e4da44066cf3af72622127eaf2ea61909..7c6abf783f4b583b0c8bc43ad434fcce37a3dcc7:/admin/blackboard.php 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 ) {