mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
"php5.1 seems to have a bug: array_slice($parts,$offeset) != array_slice($parts,$offeset,null)"
This commit is contained in:
parent
3090f728d6
commit
037704a801
@ -137,7 +137,8 @@ class nextmatch_widget
|
||||
static private function get_parts($name,$offset,$length=null)
|
||||
{
|
||||
$parts = explode('[',str_replace(']','',$name));
|
||||
return array_slice($parts,$offset,$length);
|
||||
// php5.1 seems to have a bug: array_slice($parts,$offeset) != array_slice($parts,$offeset,null)
|
||||
return is_null($length) ? array_slice($parts,$offset) : array_slice($parts,$offset,$length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user