e107inc/e107

View on GitHub
e107_plugins/blogcalendar_menu/archive.php

Summary

Maintainability
A
45 mins
Test Coverage
C
79%

Avoid deeply nested control flow statements.
Open

                if (check_class($news['news_class'])) 
                {
                    list($xmonth, $xday) = explode(" ", date("n j", $news['news_datestamp']));
                    if (!$day_links[$xmonth][$xday]) 
                    {
Severity: Major
Found in e107_plugins/blogcalendar_menu/archive.php - About 45 mins to fix

    When fetching an array index from a value of type array<string>&gt;|array{},</string> found an array index of type 1, but expected the index to be of type string
    Open

        $archive .= "<div>".calendar($req_day, $i, $req_year, varset($day_links[$i]), $pref['blogcal_ws'])."</div></td>\n";

    When fetching an array index from a value of type array<string>&gt;|array{},</string> found an array index of type 1, but expected the index to be of type string
    Open

            if (($req_year == $cur_year && $i == $cur_month) || $day_links[$i]) 

    There are no issues that match your filters.

    Category
    Status