diff options
| author | Tekimaki <tekimaki_admin@users.sourceforge.net> | 2009-03-25 16:21:59 +0000 |
|---|---|---|
| committer | Tekimaki <tekimaki_admin@users.sourceforge.net> | 2009-03-25 16:21:59 +0000 |
| commit | d3df41bdee1bf009137f77beab37a725fa7ee9a7 (patch) | |
| tree | 20a7f631d2d62ac5b30eefc1246b4653b1ee777f /admin | |
| parent | e3cdb890673463ba12dbc619c19a7e916b262a3a (diff) | |
| download | boards-d3df41bdee1bf009137f77beab37a725fa7ee9a7.tar.gz boards-d3df41bdee1bf009137f77beab37a725fa7ee9a7.tar.bz2 boards-d3df41bdee1bf009137f77beab37a725fa7ee9a7.zip | |
log the errors so we dont go insane
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/boardsync_inc.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/admin/boardsync_inc.php b/admin/boardsync_inc.php index 7d22ceb..6e1daeb 100644 --- a/admin/boardsync_inc.php +++ b/admin/boardsync_inc.php @@ -332,10 +332,13 @@ function board_sync_process_message( $pMbox, $pMsgNum, $pRawHeader, $pMsgStructu $gBitDb->CompleteTrans(); return TRUE; } else { - if( $storeComment->mErrors['store'] == 'Duplicate comment.' ) { + if( count( $storeComment->mErrors ) == 1 && !empty( $storeComment->mErrors['store'] ) && $storeComment->mErrors['store'] == 'Duplicate comment.' ) { return TRUE; } else { $gBitDb->RollbackTrans(); + foreach( $storeComment->mErrors as $error ){ + bit_log_error( $error ); + } // vd( $storeComment->mErrors ); return FALSE; } @@ -405,4 +408,4 @@ function board_sync_get_personal($pEmail) { } } return NULL; -}
\ No newline at end of file +} |
