mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix error trim is not a function from commit bac5c2e83b
This commit is contained in:
parent
bac5c2e83b
commit
09c0d12f0e
@ -121,7 +121,7 @@ var et2_arrayMgr = /** @class */ (function () {
|
||||
* @return {string[]}
|
||||
*/
|
||||
et2_arrayMgr.prototype.explodeKey = function (_key) {
|
||||
if (!_key || _key.trim() === "")
|
||||
if (!_key || typeof _key == 'string' && _key.trim() === "")
|
||||
return [];
|
||||
// Parse the given key by removing the "]"-chars and splitting at "["
|
||||
var indexes = [_key];
|
||||
|
@ -125,7 +125,7 @@ export class et2_arrayMgr
|
||||
* @return {string[]}
|
||||
*/
|
||||
explodeKey(_key: string): string[] {
|
||||
if(!_key || _key.trim() === "") return [];
|
||||
if(!_key || typeof _key == 'string' && _key.trim() === "") return [];
|
||||
|
||||
// Parse the given key by removing the "]"-chars and splitting at "["
|
||||
let indexes = [_key];
|
||||
|
Loading…
Reference in New Issue
Block a user