From e5ab7456f202b41386eb7acc781e558ff56c70ce Mon Sep 17 00:00:00 2001 From: thisgun Date: Wed, 6 Jan 2021 09:59:33 +0900 Subject: [PATCH] =?UTF-8?q?PHP80=20=EB=B2=84=EC=A0=84=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EA=B2=BD=EA=B3=A0=EB=AC=B8=EC=9D=B4=20=EB=82=98=EC=98=A4?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EB=B0=8F=20=EA=B8=80=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=EC=8B=9C=20=EC=98=A4=EB=A5=98=20=ED=98=84?= =?UTF-8?q?=EC=83=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.lib.php | 2 +- adm/sms_admin/emoticon_move_update.php | 15 +++++++-------- adm/sms_admin/form_list.php | 9 +++++---- adm/sms_admin/form_multi_update.php | 3 ++- adm/sms_admin/form_update.php | 1 + bbs/move.php | 2 +- bbs/move_update.php | 14 ++++++-------- bbs/scrap_popin_update.php | 16 +++++++--------- lib/uri.lib.php | 8 ++++---- 9 files changed, 34 insertions(+), 36 deletions(-) diff --git a/adm/admin.lib.php b/adm/admin.lib.php index d420b18b1..af780a2ff 100644 --- a/adm/admin.lib.php +++ b/adm/admin.lib.php @@ -184,7 +184,7 @@ function get_theme_config_value($dir, $key='*') } else { $keys = array_map('trim', explode(',', $key)); foreach($keys as $v) { - $tconfig[$v] = trim($theme_config[$v]); + $tconfig[$v] = isset($theme_config[$v]) ? trim($theme_config[$v]) : ''; } } } diff --git a/adm/sms_admin/emoticon_move_update.php b/adm/sms_admin/emoticon_move_update.php index 30a6bf330..08fe2848e 100644 --- a/adm/sms_admin/emoticon_move_update.php +++ b/adm/sms_admin/emoticon_move_update.php @@ -1,4 +1,5 @@ -HEREDOC; \ No newline at end of file +돌아가기 + \ No newline at end of file diff --git a/adm/sms_admin/form_list.php b/adm/sms_admin/form_list.php index 64b771ae3..9fb66bb4a 100644 --- a/adm/sms_admin/form_list.php +++ b/adm/sms_admin/form_list.php @@ -34,7 +34,7 @@ if ($st == 'all') { } $total_res = sql_fetch("select count(*) as cnt from {$g5['sms5_form_table']} where 1 $sql_group $sql_search"); -$total_count = $total_res['cnt']; +$total_count = isset($total_res['cnt']) ? $total_res['cnt'] : 0; $total_page = (int)($total_count/$page_size) + ($total_count%$page_size==0 ? 0 : 1); $page_start = $page_size * ( $page - 1 ); @@ -46,7 +46,7 @@ $qry = sql_query("select * from {$g5['sms5_form_group_table']} order by fg_name" while ($res = sql_fetch_array($qry)) array_push($group, $res); $res = sql_fetch("select count(*) as cnt from {$g5['sms5_form_table']} where fg_no=0"); -$no_count = $res['cnt']; +$no_count = isset($res['cnt']) ? $res['cnt'] : 0; include_once(G5_ADMIN_PATH.'/admin.head.php'); ?> @@ -146,6 +146,7 @@ function multi_update(sel)
+