mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
tbl_student changed to tbl_prestudent
This commit is contained in:
@@ -16,8 +16,9 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>,
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at> and
|
||||
* Andreas Moik <moik@technikum-wien.at>.
|
||||
*/
|
||||
require_once(dirname(__FILE__).'/basis_db.class.php');
|
||||
require_once(dirname(__FILE__).'/authentication.class.php');
|
||||
@@ -154,7 +155,7 @@ function check_student($uid)
|
||||
$db = new basis_db();
|
||||
|
||||
// uid von Tabelle 'Student' holen
|
||||
$sql_query="SELECT student_uid FROM public.tbl_student WHERE student_uid=".$db->db_add_param($uid);
|
||||
$sql_query="SELECT uid FROM public.tbl_prestudent WHERE uid=".$db->db_add_param($uid);
|
||||
//echo $sql_query;
|
||||
if($db->db_query($sql_query))
|
||||
{
|
||||
@@ -163,7 +164,7 @@ function check_student($uid)
|
||||
if ($num_rows>0)
|
||||
{
|
||||
$row = $db->db_fetch_object();
|
||||
return $row->student_uid;
|
||||
return $row->uid;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user