mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
Merge branch '3.2.x'
This commit is contained in:
commit
e2a746c644
@ -63,4 +63,16 @@ class data extends Event implements \ArrayAccess
|
|||||||
{
|
{
|
||||||
unset($this->data[$offset]);
|
unset($this->data[$offset]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns data with updated key in specified offset.
|
||||||
|
*
|
||||||
|
* @param string $subarray Data array subarray
|
||||||
|
* @param string $key Subarray key
|
||||||
|
* @param mixed $value Value to update
|
||||||
|
*/
|
||||||
|
public function update_subarray($subarray, $key, $value)
|
||||||
|
{
|
||||||
|
$this->data[$subarray][$key] = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user