mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-07 20:42:10 +09:00
issue 2491 update error of copyDocumentModule
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11393 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
75d8192349
commit
4e39284caa
2 changed files with 4 additions and 4 deletions
|
|
@ -174,7 +174,7 @@ class documentController extends document {
|
|||
* @param bool $isRestore
|
||||
* @return object
|
||||
*/
|
||||
function insertDocument($obj, $manual_inserted = false, $isRestore = false) {
|
||||
function insertDocument($obj, $manual_inserted = false, $isRestore = false, $isLatest = true) {
|
||||
// begin transaction
|
||||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
|
@ -212,7 +212,7 @@ class documentController extends document {
|
|||
}
|
||||
// Set the read counts and update order.
|
||||
if(!$obj->readed_count) $obj->readed_count = 0;
|
||||
if(!$isRestore) $obj->update_order = $obj->list_order = getNextSequence() * -1;
|
||||
if($isLatest) $obj->update_order = $obj->list_order = getNextSequence() * -1;
|
||||
else $obj->update_order = $obj->list_order;
|
||||
// Check the status of password hash for manually inserting. Apply md5 hashing for otherwise.
|
||||
if($obj->password && !$obj->password_is_hashed) $obj->password = md5($obj->password);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue