# FIND if(count($rows) > 1) { # REPLACE WITH if((count($rows) > 1) && (count($rows) !== $i)) { # FIND LINE 746, REPLACE WITH $i = 0; foreach ($rows as $row) { $i++;