mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Merge pull request #113 from christopherdarling/patch-2
replaced of deprecated function key_exists with array_key_exists
This commit is contained in:
commit
7e98d488e5
@ -80,7 +80,7 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
|
|||||||
*/
|
*/
|
||||||
function setConfig($reference, $value)
|
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);
|
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);
|
user_error("Unable to find matching bulk action handler for ".$request->remaining().'.', E_USER_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ class GridFieldBulkUpload implements GridField_HTMLProvider, GridField_URLHandle
|
|||||||
$this->setUfConfig($reference, $value);
|
$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);
|
user_error("Unknown option reference: $reference", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user