Merge pull request #113 from christopherdarling/patch-2

replaced of deprecated function key_exists with array_key_exists
This commit is contained in:
Thierry François 2015-12-07 18:01:59 +02:00
commit 7e98d488e5
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}