key_exists deprecated use array_key_exists

key_exists deprecated use array_key_exists
This commit is contained in:
Christopher Darling 2015-12-07 11:03:20 +00:00
parent 79cead517f
commit 1730461da0
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);
}
@ -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);
}
}
}

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