Skip to content

Commit

Permalink
Allowing Session::delete() to accept multiple parameters, fixes #2850
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed May 9, 2010
1 parent 258d4f7 commit 673758d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion classes/kohana/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,17 @@ public function set($key, $value)
* $session->delete('foo');
*
* @param string variable name
* @param ...
* @return $this
*/
public function delete($key)
{
unset($this->_data[$key]);
$args = func_get_args();

foreach ($args as $key)
{
unset($this->_data[$key]);
}

return $this;
}
Expand Down

0 comments on commit 673758d

Please sign in to comment.