Etemplate: Don't try to expand src if it is empty

This commit is contained in:
nathangray 2020-11-24 10:24:36 -07:00
parent c258019574
commit b78971a5c5
2 changed files with 4 additions and 4 deletions

View File

@ -76,8 +76,8 @@ var et2_image = /** @class */ (function (_super) {
// Check to expand name
if (typeof _attrs["src"] != "undefined") {
var manager = this.getArrayMgr("content");
if (manager) {
var src = manager.getEntry(_attrs["src"]);
if (manager && _attrs["src"]) {
var src = manager.getEntry(_attrs["src"], false, true);
if (typeof src != "undefined" && src !== null) {
if (typeof src == "object") {
src = egw().link('/index.php', src);

View File

@ -124,8 +124,8 @@ class et2_image extends et2_baseWidget implements et2_IDetachedDOM
if (typeof _attrs["src"] != "undefined")
{
let manager = this.getArrayMgr("content");
if(manager) {
let src = manager.getEntry(_attrs["src"]);
if(manager && _attrs["src"]) {
let src = manager.getEntry(_attrs["src"], false, true);
if (typeof src != "undefined" && src !== null)
{
if(typeof src == "object")