e107inc/e107

View on GitHub
e107_plugins/news/e_gsitemap.php

Summary

Maintainability
A
0 mins
Test Coverage
F
3%

Call to undeclared method \e_shortcode::sc_news_image
Open

            $imgUrl = $sc->sc_news_image(['item'=>1, 'type'=>'src']);
Severity: Critical
Found in e107_plugins/news/e_gsitemap.php by phan

Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
Open

        return e107::getDb()->retrieve($query,true);
Severity: Minor
Found in e107_plugins/news/e_gsitemap.php by phan

Call to undeclared method \e_shortcode::sc_news_image
Open

                'image'     => (strpos($imgUrl, 'http') === 0) ? $imgUrl : SITEURLBASE.$sc->sc_news_image(['item'=>1, 'type'=>'src']),
Severity: Critical
Found in e107_plugins/news/e_gsitemap.php by phan

Suspicious array access to ?mixed
Open

                'lastmod'   => !empty($row['news_modified']) ? $row['news_modified'] : (int) $row['news_datestamp'],
Severity: Minor
Found in e107_plugins/news/e_gsitemap.php by phan

There are no issues that match your filters.

Category
Status