Skip to content
Snippets Groups Projects
Commit ae0aee08 authored by Tim Steiner's avatar Tim Steiner
Browse files

Fix a bug where new users don't get added to the local database when swiping. @0h15

parent df8019c2
No related branches found
No related tags found
No related merge requests found
......@@ -148,8 +148,7 @@ function import_student_data($nuid, $semester_code, $student_db)
// check to see if user is in local db, if not get from stundent info db
$sql = 'SELECT nuid FROM people WHERE nuid = \'' . $nuid . '\'';
$nuid = $local_db->GetOne( $sql );
if( empty( $nuid ) )
if( !$local_db->GetOne($sql) )
{
// get personal info
$sql = 'SELECT username, firstname, middlename, lastname, email FROM people WHERE nuid=\'' . $nuid .'\' AND validuser=\'1\'';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment