From 1cc2b141f954fb3fa8ff966746f965caca99722b Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 3 Apr 2020 12:24:24 +0900 Subject: [PATCH] =?UTF-8?q?get=5Fgroup=20=ED=95=A8=EC=88=98=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=EC=8B=9C=20string=20=EC=9D=B8=EC=A7=80=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 2 +- lib/common.lib.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index ba97a952c..9da7690df 100644 --- a/common.php +++ b/common.php @@ -463,7 +463,7 @@ if ($bo_table) { } } -if ($gr_id) { +if ($gr_id && is_string($gr_id)) { $group = get_group($gr_id); } diff --git a/lib/common.lib.php b/lib/common.lib.php index 4cbaf89d1..aaa27f660 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -746,6 +746,10 @@ function get_next_num($table) function get_group($gr_id, $is_cache=false) { global $g5; + + if( is_array($gr_id) ){ + return array(); + } static $cache = array();