Skip to content

Commit 388ff36

Browse files
committed
Do a better test for invalid theme manifest.json
Fixes #2065.
1 parent 2ceb3c4 commit 388ff36

File tree

1 file changed

+1
-1
lines changed
  • textpattern/vendors/Textpattern/Skin

1 file changed

+1
-1
lines changed

textpattern/vendors/Textpattern/Skin/Skin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public function import($sync = false, $override = false)
731731
} else {
732732
$skinInfos = array_merge(array('name' => $name), $this->getFileContents());
733733

734-
if (!$skinInfos) {
734+
if (count($skinInfos) == 1) {
735735
$this->mergeResult('invalid_json', $filePath);
736736
} else {
737737
extract($skinInfos);

0 commit comments

Comments
 (0)