WP assets fix

This commit is contained in:
Juan Ferrer 2019-02-05 14:18:38 +01:00
parent ec85573e39
commit c744e9286e
3 changed files with 3 additions and 3 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.25) stable; urgency=low
hedera-web (1.406.26) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.406.25",
"version": "1.406.26",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -37,7 +37,7 @@ function getWebpackAssets() {
$jsFiles = [];
foreach ($wpAssets as $name => $asset)
if ($name && property_exists($asset, 'js'))
if (!empty($name) && property_exists($asset, 'js'))
$jsFiles[] = $serverPath . $asset->js;
return $jsFiles;