Fix uninitialized stdClass in rarely used method

This commit is contained in:
BJRambo 2016-05-27 07:57:58 +09:00
parent 3bd25f9538
commit 508b6ed340
24 changed files with 68 additions and 19 deletions

View file

@ -37,6 +37,7 @@ class documentAdminModel extends document
unset($obj->mid);
}
// check if the module_srl is an array
$args = new stdClass();
if(is_array($obj->module_srl)) $args->module_srl = implode(',', $obj->module_srl);
else $args->module_srl = $obj->module_srl;
// Variable check
@ -81,6 +82,7 @@ class documentAdminModel extends document
*/
function getDocumentTrash($trash_srl)
{
$args = new stdClass();
$args->trash_srl = $trash_srl;
$output = executeQuery('document.getTrash', $args);