e107inc/e107

View on GitHub
submitnews.php

Summary

Maintainability
A
0 mins
Test Coverage
F
43%

Variable $pref was undeclared, but array fields are being added to it.
Open

    $pref['subnews_class'] = e_UC_MEMBER;
Severity: Info
Found in submitnews.php by phan

Argument 4 (mediaCat) is null but \e_form::bbarea() takes string defined at /code/e107_handlers/form_handler.php:2432
Open

                    ".e107::getForm()->bbarea('submitnews_item', $tp->toForm(vartrue($_POST['submitnews_item'])),null, null, 'large')."
Severity: Minor
Found in submitnews.php by phan

Call to deprecated function \resize_image() defined at /code/e107_handlers/resize_handler.php:47
Open

                                if (!resize_image(e_UPLOAD.$filename, e_UPLOAD.$submitnews_file, $pref['subnews_resize']))
Severity: Minor
Found in submitnews.php by phan

Argument 3 (default) is false but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

        $minDimensions = e107::pref('core','subnews_attach_minsize',false);
Severity: Minor
Found in submitnews.php by phan

Argument 3 (template) is null but \e_form::bbarea() takes string defined at /code/e107_handlers/form_handler.php:2432
Open

                    ".e107::getForm()->bbarea('submitnews_item', $tp->toForm(vartrue($_POST['submitnews_item'])),null, null, 'large')."
Severity: Minor
Found in submitnews.php by phan

Argument 1 (message) is ?'Error uploading image'|?'You must give your name and email address'|?string but \eMessage::addWarning() takes string defined at /code/e107_handlers/message_handler.php:282
Open

            $mes->addWarning($message);
Severity: Minor
Found in submitnews.php by phan

There are no issues that match your filters.

Category
Status