Skip to content
This repository was archived by the owner on Nov 19, 2017. It is now read-only.

Commit cb0b11a

Browse files
author
tolleiv
committed
Avoid stupid JavaScript errors if not extconf is loaded
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/imagemap_wizard/trunk@51035 735d13b6-9817-0410-8766-e36946ffe9aa
1 parent 3f45cb4 commit cb0b11a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

classes/model/class.tx_imagemapwizard_model_dataObject.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ public function emptyAttributeSet() {
273273
$relAttr = $this->getAttributeKeys();
274274
$ret = array();
275275
foreach ($relAttr as $key) {
276-
$ret[] = $key . ':\'\'';
276+
if ($key) {
277+
$ret[] = $key . ':\'\'';
278+
}
277279
}
278280
return implode(',', $ret);
279281
}

0 commit comments

Comments
 (0)