From 8ecc5ba241c82b05c80694e44c8ec49aebd4167d Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 17 Apr 2023 12:29:42 +0900 Subject: [PATCH] =?UTF-8?q?min=5Fwr=5Fnum=20Undefined=20=EA=B2=BD=EA=B3=A0?= =?UTF-8?q?=EB=AC=B8=EC=9D=B4=20=EB=82=98=EC=98=AC=EC=88=98=20=EC=9E=88?= =?UTF-8?q?=EB=8A=94=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 19c15393b..afafb2ba3 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -768,7 +768,7 @@ function get_next_num($table) $sql = " select min(wr_num) as min_wr_num from $table "; $row = sql_fetch($sql); // 가장 작은 번호에 1을 빼서 넘겨줌 - return (int)($row['min_wr_num'] - 1); + return isset($row['min_wr_num']) ? (int)($row['min_wr_num'] - 1) : -1; }