e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Variable $PM_INBOX_EMPTY is undeclared
Open

                $PM_INBOX['empty'] = $this->updateTemplate($PM_INBOX_EMPTY);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Variable $PM_BLOCKED_TABLE is undeclared
Open

                $PM_BLOCKED['item'] = $this->updateTemplate($PM_BLOCKED_TABLE);
Severity: Minor
Found in e107_plugins/pm/pm.php by phan

Method \private_message::pm_mark_read is declared to return \none but has no return value
Open

    function pm_mark_read($pm_id, $pm_info)
Severity: Minor
Found in e107_plugins/pm/pm_class.php by phan

Saw possibly unextractable annotation for a fragment of comment '* @param string var - name to match': after string, did not see an element name (will guess based on comment order)
Open

     *    @param string var - name to match
Severity: Info
Found in e107_plugins/pm/pm_class.php by phan

Call to undeclared method \e_db::db_getList
Open

            $ret['messages'] = $sql->db_getList();
Severity: Critical
Found in e107_plugins/pm/pm_class.php by phan

Argument 2 (pluginName) is true but \e107::getScBatch() takes string defined at /code/e107_handlers/e107_class.php:1608
Open

$sc = e107::getScBatch('pm',TRUE, 'pm');
Severity: Minor
Found in e107_plugins/pm/pm_menu.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

            return e107::getParser()->parseTemplate("{NEXTPREV={$this->pmNextPrev['total']},{$this->pmPrefs['perpage']},{$this->pmNextPrev['start']},".e_SELF."?{$parm}.[FROM]}");
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

                $ret = "<a href='".$url->create('user/profile/view', array('id' => $this->pmBlocked['pm_block_from'], 'name' => $this->pmBlocked['user_name']))."'>{$this->pmBlocked['user_name']}</a>";
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Invalid offset "pm_block_datestamp" of array type array{}
Open

            return e107::getDate()->convert_date($this->pmBlocked['pm_block_datestamp'], $parm);
Severity: Minor
Found in e107_plugins/pm/pm_shortcodes.php by phan

Variable $poll_id is undeclared
Open

                    <button class='btn btn-default btn-secondary btn-large action delete' type='submit' name='delete[$poll_id]' value='del' onclick=\"return jsconfirm(".$tp->toAttribute($tp->toJSON(LAN_CONFIRMDEL." [".$poll_id."]")).") \" title='".LAN_DELETE."' >".ADMIN_DELETE_ICON."</button>
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Call to deprecated function \show_admin_menu() defined at /code/e107_admin/boot.php:354
Open

    show_admin_menu($caption, $action, $var);
Severity: Minor
Found in e107_plugins/poll/admin_config.php by phan

Argument 4 (mon) is string|string[] but \mktime() takes int
Open

        $active_end        = (!$_POST['endmonth'] || !$_POST['endday'] || !$_POST['endyear'] ? 0 : mktime (0, 0, 0, $_POST['endmonth'], $_POST['endday'], $_POST['endyear']));
Severity: Minor
Found in e107_plugins/poll/poll_class.php by phan

Variable $sql is undeclared
Open

if(!$sql->select('rss', '*', "rss_class != 2 AND rss_url='".$content_type."' ".$check_topic." AND rss_limit > 0 "))
Severity: Minor
Found in e107_plugins/rss_menu/rss.php by phan

Variable $pageInfo is undeclared
Open

        $total = ($pageInfo[$pageName]['ttl'] ? $pageInfo[$pageName]['ttl'] : 0);
Severity: Minor
Found in e107_plugins/siteinfo/counter_menu.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if (!getperms('P'))
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Reference to undeclared constant \ADMIN_TRUE_ICON
Open

            $textEnabled = ($slcm->isProviderEnabled($provider_name)) ? ADMIN_TRUE_ICON : ADMIN_FALSE_ICON;
Severity: Minor
Found in e107_plugins/social/admin_config.php by phan

Argument 1 (name) is 'og:type' but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('og:type', 'website');
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Argument 2 (content) is string but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('twitter:image', $metaImg);
Severity: Minor
Found in e107_plugins/social/e_event.php by phan

Assigning array<string></string> to property but \pm_admin->adminMenu is array<string>&gt;|array{main/prefs:array{caption:'Preferences',perm:'P'},main/limits:array{caption:'Limits',perm:'P'},main/maint:array{caption:'Maintenance',perm:'P'},main/null:array{divider:true},inbox/list:array{caption:'Inbox',perm:'P'},outbox/list:array{caption:'Outbox',perm:'P'},outbox/create:array{caption:'Send New Message',perm:'P'}}</string>
Open

            $this->adminMenu['main/list']   = array('caption'=> "Log", 'perm' => 'P');
Severity: Minor
Found in e107_plugins/pm/admin_config.php by phan

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

                    $limitList[$row['limit_classnum']] = $row;
Severity: Info
Found in e107_plugins/pm/admin_config.php by phan
Severity
Category
Status
Source
Language