mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Issue 2176 related to http://www.xpressengine.com/userForum/20977959
avoid DB addition error. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.1@10945 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
282f285b8d
commit
02c5535bdd
1 changed files with 8 additions and 0 deletions
|
|
@ -359,6 +359,10 @@
|
|||
function recordLoginError($error = 0, $message = 'success')
|
||||
{
|
||||
if($error == 0) return new Object($error, $message);
|
||||
// Check if there is recoding table.
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isTableExists('member_login_count')) return new Object($error, $message);
|
||||
|
||||
|
||||
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
|
|
@ -398,6 +402,10 @@
|
|||
function recordMemberLoginError($error = 0, $message = 'success', $args = NULL)
|
||||
{
|
||||
if($error == 0 || !$args->member_srl) return new Object($error, $message);
|
||||
// Check if there is recoding table.
|
||||
$oDB = &DB::getInstance();
|
||||
if(!$oDB->isTableExists('member_count_history')) return new Object($error, $message);
|
||||
|
||||
|
||||
$output = executeQuery('member.getLoginCountHistoryByMemberSrl', $args);
|
||||
if($output->data && $output->data->content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue