mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 16:35:02 +02:00
Etemplate: If key is empty / not set, don't try to explode it
This commit is contained in:
@ -125,6 +125,8 @@ export class et2_arrayMgr
|
||||
* @return {string[]}
|
||||
*/
|
||||
explodeKey(_key: string): string[] {
|
||||
if(!_key || _key.trim() === "") return [];
|
||||
|
||||
// Parse the given key by removing the "]"-chars and splitting at "["
|
||||
let indexes = [_key];
|
||||
|
||||
|
Reference in New Issue
Block a user