need to reinstall supermint_dropdown.php file.

By accident, I delete the file supermint_dropdown.php
Now Whoops \ Exception \ ErrorException (E_WARNING)
include(/home/xurmhwrf/public_html/ 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):

View Replies: View Best Answer
ConcreteOwl replied on at Permalink Best Answer Reply
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
            $ni->full_width_mega =  $o->full_width_multicolumn;
            $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';