mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 10:30:42 +00:00
fix sql statement to create session
This commit is contained in:
parent
d4e6eb6784
commit
e8e58b6bae
|
|
@ -97,7 +97,7 @@ class SeedDMS_Session {
|
||||||
$id = md5($id);
|
$id = md5($id);
|
||||||
$lastaccess = time();
|
$lastaccess = time();
|
||||||
$queryStr = "INSERT INTO tblSessions (id, userID, lastAccess, theme, language, su) ".
|
$queryStr = "INSERT INTO tblSessions (id, userID, lastAccess, theme, language, su) ".
|
||||||
"VALUES ('".$id."', ".$data['userid'].", ".$lastaccess.", '".$data['theme']."', '".$data['lang']."')";
|
"VALUES ('".$id."', ".$data['userid'].", ".$lastaccess.", '".$data['theme']."', '".$data['lang']."', 0)";
|
||||||
if (!$this->db->getResult($queryStr)) {
|
if (!$this->db->getResult($queryStr)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user