Commit b4f0a87b by 冷斌

fix bug

parent 7e6c7aae
......@@ -291,10 +291,10 @@ class AdminPaperAction extends AdministratorAction
}
$attache_id = '';
$attache_ids = explode('|', $_POST['attache_ids']);
if (!empty(array_filter($attache_ids))) {
$attache_id = array_pop($attache_ids);
if (!empty($attache_ids)) {
$attache_id = array_pop(array_filter($attache_ids));
}
var_dump($attache_ids);
var_dump($attache_ids, $attache_id);
die;
$data['exams_subject_id'] = end($subjectArr);
$data['description'] = t($_POST['description']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment