From 87f8c4bc750ca541f5206c7b7b682dc6694f7221 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 25 Apr 2023 13:40:27 +0200 Subject: [PATCH] oops --- src/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.php b/src/Utils.php index 5c7502b..f924ae2 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -155,7 +155,7 @@ class Utils try { $sql = new SelectStatement(); $rs = $sql->from(dcCore::app()->prefix . My::TABLE_NAME)->column($sql->max('option_id'))->select(); - if (is_null($rs) || $rs->isEmtpy()) { + if (is_null($rs) || $rs->isEmpty()) { throw new Exception(__('Something went wrong)')); }