From 33e44b870843d1df8d678bcac0a286857869f214 Mon Sep 17 00:00:00 2001 From: conory Date: Mon, 8 Oct 2018 12:31:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=9C=EB=B8=8C=EC=BF=BC=EB=A6=AC=EC=8B=9C?= =?UTF-8?q?=20Warning:=20Invalid=20argument=20supplied=20for=20foreach()?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/db/queryparts/Query.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/db/queryparts/Query.class.php b/classes/db/queryparts/Query.class.php index acb9e4e15..229a3b8fc 100644 --- a/classes/db/queryparts/Query.class.php +++ b/classes/db/queryparts/Query.class.php @@ -586,6 +586,11 @@ class Query extends BaseObject */ function getHavingString($with_values = TRUE) { + if(!is_array($this->having)) + { + return ''; + } + $having = ''; $condition_count = 0;