diff --git a/framework/helper.class.php b/framework/helper.class.php index 142f9d6267..061ee829a5 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -424,7 +424,7 @@ class helper extends baseHelper public static function arrayColumn(array $input, int|string|null $columnKey, int|string|null $indexKey = null): array { /* If php version greater than 7, calling system functions returns. */ - if(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)