need to reinstall supermint_dropdown.php file.

Permalink
By accident, I delete the file supermint_dropdown.php
Now Whoops \ Exception \ ErrorException (E_WARNING)
include(/home/xurmhwrf/public_html/ianskellett.photography/packages/theme_supermint/blocks/autonav/templates/supermint_dropdown.php): failed to open stream: No such file or directory
Ok found file reinstalled, now have, " Whoops - Exception - ErrorException (E_WARNING)
count (): Parameter must be an array or an object that implements Countable"
Line 92: if ($ni-getAttribute('display_multi_columns_drop') || count ($niblocks):

 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
You need to wrap the code in an 'if' statement, try this
if (is_array($ni->blocks) ) { // add this line
      // Maintenant on va déterminer les classes pour le dropdown
      if($ni->cObj->getAttribute('display_multi_columns_drop') || 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;
         else
            $ni->full_width_mega = $o->full_width_mega;
         // Si on desire que le mega menu s'ouvre sur toute la largeur du menu
         if ($ni->full_width_mega) {
            $classes[] = 'mgm-drop mgm-full-width';
         // Ou alors on le place sous le menu supérieur
         } else {
            $classes[] = 'mgm-drop';
         }