From 1730461da0f837f31f7f5a04ed9ec4bfbab14c06 Mon Sep 17 00:00:00 2001 From: Christopher Darling Date: Mon, 7 Dec 2015 11:03:20 +0000 Subject: [PATCH] key_exists deprecated use array_key_exists key_exists deprecated use array_key_exists --- bulkManager/code/GridFieldBulkManager.php | 4 ++-- bulkUpload/code/GridFieldBulkUpload.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bulkManager/code/GridFieldBulkManager.php b/bulkManager/code/GridFieldBulkManager.php index e8ecd47..9b5935d 100644 --- a/bulkManager/code/GridFieldBulkManager.php +++ b/bulkManager/code/GridFieldBulkManager.php @@ -80,7 +80,7 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr */ function setConfig($reference, $value) { - if (!key_exists($reference, $this->config) ) + if (!array_key_exists($reference, $this->config) ) { user_error("Unknown option reference: $reference", E_USER_ERROR); } @@ -375,4 +375,4 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr user_error("Unable to find matching bulk action handler for ".$request->remaining().'.', E_USER_ERROR); } -} \ No newline at end of file +} diff --git a/bulkUpload/code/GridFieldBulkUpload.php b/bulkUpload/code/GridFieldBulkUpload.php index 729b6c5..5dfc536 100644 --- a/bulkUpload/code/GridFieldBulkUpload.php +++ b/bulkUpload/code/GridFieldBulkUpload.php @@ -106,7 +106,7 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle $this->setUfConfig($reference, $value); } } - else if (!key_exists($reference, $this->config) ) { + else if (!array_key_exists($reference, $this->config) ) { user_error("Unknown option reference: $reference", E_USER_ERROR); }