From 23e65c0662da8ac5ff950e16a76e0efef1c49fef Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 18 Sep 2023 15:27:40 +0800 Subject: [PATCH] * Fix error for defined param. --- framework/base/helper.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php index d957af982f..2cb58e258f 100644 --- a/framework/base/helper.class.php +++ b/framework/base/helper.class.php @@ -929,7 +929,7 @@ class baseHelper public static function arrayColumn(array $input, $columnKey, $indexKey = null): array { /* If php version greater than 7, calling system functions returns. */ - if(defined(PHP_VERSION_ID) && PHP_VERSION_ID >= 70000) return \array_column($input, $columnKey, $indexKey); + if(defined('PHP_VERSION_ID') && PHP_VERSION_ID >= 70000) return \array_column($input, $columnKey, $indexKey); $output = array(); foreach($input as $row)