fixed #52, updateDocument시 extra_var 처리 오류 개선

This commit is contained in:
khongchi 2013-11-15 13:36:48 +09:00
parent 71c8a0b99f
commit 203f2e683a

View file

@ -392,7 +392,7 @@ class documentController extends document
if($obj->homepage && !preg_match('/^[a-z]+:\/\//i',$obj->homepage)) $obj->homepage = 'http://'.$obj->homepage;
if($obj->notify_message != 'Y') $obj->notify_message = 'N';
// Serialize the $extra_vars
$obj->extra_vars = serialize($obj->extra_vars);
if(!is_string($obj->extra_vars)) $obj->extra_vars = serialize($obj->extra_vars);
// Remove the columns for automatic saving
unset($obj->_saved_doc_srl);
unset($obj->_saved_doc_title);