Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions attributes/fileset/controller.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
<?php
namespace Concrete\Package\ThemeSupermint\Attribute\Fileset;

defined('C5_EXECUTE') or die(_("Access Denied."));
Expand All @@ -24,11 +24,11 @@ public function form() {
$selected = 0;
}

if (count($input))
if (!isnull($input) && count($input))
print Loader::helper('form')->select($this->field('value'), $input,$selected);
else
echo t('No file sets found.');

}
}

}
}
2 changes: 1 addition & 1 deletion blocks/autonav/templates/supermint_dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
endif;

// Maintenant on va déterminer les classes pour le dropdown
if($ni->cObj->getAttribute('display_multi_columns_drop') || count($ni->blocks)) :
if($ni->cObj->getAttribute('display_multi_columns_drop') || (is_array($ni->blocks) && count($ni->blocks))) :
// On prend la valeur de l'option full_width_mega ou si on est en multicolumn, l'option full_width_multicolumn
if($ni->cObj->getAttribute('display_multi_columns_drop'))
$ni->full_width_mega = $o->full_width_multicolumn;
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function upgradePageListTemplates () {
if ($block->getBlockTypeHandle() == 'page_list') {
$templateName = $block->getBlockFilename();
preg_match("/supermint_(\w+)_(\w+)\.php/",$templateName,$matches);
if (count($matches)) {
if (is_array($matches) && count($matches)) {
if ($matches[1] == 'carousel') $this->setBlockClass($block,'is-carousel',$matches[2]);
if ($matches[1] == 'static' && $matches[2] == 'block') $this->setBlockClass($block,'',$matches[2]);
if ($templateName == 'supermint_recent_post.php') $this->setBlockClass($block,'1-column',false);
Expand Down
Loading