Skip to content

[Insight] Unused method, property, variable or parameter - in core/security/functions.php, line 17 #6

@Josexv1

Description

@Josexv1

in core/security/functions.php, line 17

This result local variable is declared but never used. You should remove it.

          $query_params = array( 
              ':id' => $session
          ); 
          try{ 
          $stmt = $db->prepare($query); 
          $result = $stmt->execute($query_params); 
          } 
          catch(PDOException $ex){ 
      echo "Error > " .$ex->getMessage();
      }
    $dataUsuario = $stmt->fetch();

Posted from SensioLabsInsight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions