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)