If there are multiple saved documents, only use one

This commit is contained in:
Kijin Sung 2021-01-29 10:32:18 +09:00
parent 53a3096591
commit b388161c03

View file

@ -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))