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

Commit 931396e

Browse files
mrclayhypeJunction
authored andcommitted
fix(actions): allow uploading only 1 asset (#10)
1 parent 7146623 commit 931396e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

actions/theme/assets.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
$dir = elgg_get_config('dataroot');
1212

1313
foreach ($assets as $name => $asset) {
14+
if (!$asset) {
15+
continue;
16+
}
1417
if (!$asset->isValid()) {
1518
$error++;
1619
continue;

0 commit comments

Comments
 (0)