mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #2033 PHP 7.1 환경에서 DB 세션 사용 시 로그인 등 세션처리 문제 고침
- 필요 없는 column 확인 코드 제거
This commit is contained in:
parent
58a3b47246
commit
b340d95e18
1 changed files with 2 additions and 13 deletions
|
|
@ -28,20 +28,9 @@ class sessionModel extends session
|
|||
$columnList = array('session_key', 'cur_mid', 'val');
|
||||
$output = executeQuery('session.getSession', $args, $columnList);
|
||||
|
||||
// Confirm there is a table created if read error occurs
|
||||
if(!$output->toBool())
|
||||
if(!$output->data)
|
||||
{
|
||||
$oDB = DB::getInstance();
|
||||
if(!$oDB->isTableExists('session')) $oDB->createTableByXmlFile($this->module_path.'schemas/session.xml');
|
||||
if(!$oDB->isColumnExists("session", "cur_mid")) $oDB->addColumn('session',"cur_mid","varchar",128);
|
||||
$output = executeQuery('session.getSession', $args);
|
||||
}
|
||||
|
||||
// Check if there is a table created in case there is no "cur_mid" value in the sessions information
|
||||
if(!isset($output->data->cur_mid))
|
||||
{
|
||||
$oDB = DB::getInstance();
|
||||
if(!$oDB->isColumnExists("session", "cur_mid")) $oDB->addColumn('session',"cur_mid","varchar",128);
|
||||
return '';
|
||||
}
|
||||
|
||||
return $output->data->val;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue