e107inc/e107

View on GitHub
e107_handlers/search/search_event.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Variable $tp is undeclared
Open

$query = $tp -> toDB($query);
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $sql2 is undeclared
Open

    $sql2->select("event_cat", "event_cat_name, event_cat_icon", "event_cat_id='".$event_category."' ");
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $sql is undeclared
Open

while (list($event_id, $event_stake, $event_ward, $event_organisation, $event_start, $event_end, $event_allday, , , $event_title, $event_location, $event_details, $event_author, $event_contact, $event_category, $event_url ) = $sql->fetch()) {
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $event_threat is undeclared
Open

    $event_threat_ = parsesearch($event_threat, $query);
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $sql is undeclared
Open

$results = $sql->select("event", "*", "event_stake REGEXP('".$query."') OR event_ward REGEXP('".$query."') OR event_organisation REGEXP('".$query."') OR event_title REGEXP('".$query."')
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $event_threat is undeclared
Open

        $event_threat_ = $event_threat;
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Reference to undeclared constant \BULLET
Open

        $bullet = '<img src="'.THEME.'images/'.BULLET.'" alt="" class="icon" />';
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $event_url_ is undeclared
Open

    if (!$event_url_) {
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Cannot use empty array elements in arrays
Open

while (list($event_id, $event_stake, $event_ward, $event_organisation, $event_start, $event_end, $event_allday, , , $event_title, $event_location, $event_details, $event_author, $event_contact, $event_category, $event_url ) = $sql->fetch()) {
Severity: Critical
Found in e107_handlers/search/search_event.php by phan

Variable $sql2 is undeclared
Open

    list($event_cat_name, $event_cat_icon ) = $sql2->fetch();
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Reference to undeclared constant \LAN_911
Open

$qtype = LAN_911;
Severity: Minor
Found in e107_handlers/search/search_event.php by phan

Variable $text was undeclared, but it is being used as the left-hand side of an assignment operation
Open

    $text .= $bullet." <a href=\"event.php?".$event_start."\">{$event_title}</a>{$event_details}<br />";

There are no issues that match your filters.

Category
Status