mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
If there are multiple saved documents, only use one
This commit is contained in:
parent
53a3096591
commit
b388161c03
1 changed files with 4 additions and 0 deletions
|
|
@ -464,6 +464,10 @@ class editorModel extends editor
|
|||
|
||||
// Return null if no result is auto-saved
|
||||
if(!$saved_doc) return;
|
||||
if(is_array($saved_doc))
|
||||
{
|
||||
$saved_doc = array_first($saved_doc);
|
||||
}
|
||||
|
||||
// Return null if certify key does not match
|
||||
if($saved_doc->certify_key && !isset($auto_save_args->certify_key))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue