Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
fixed for php v8.2
  • Loading branch information
aj-techsoul authored Aug 26, 2024
1 parent 8fde1f2 commit 3a60b5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ELI/classes/class.database.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ function query($sql,$config='')
{
try {
$conn = self::connect_db($config);
if(!empty($sql)){

$stmt = $conn->prepare($sql);
$stmt->execute();
// set the resulting array to associative
Expand All @@ -417,7 +419,8 @@ function query($sql,$config='')
} else {
echo "0 results";
}
self::disconnect_db($config);
self::disconnect_db($config);
}
}
catch (PDOException $err) {
self::formatError($err);
Expand Down

0 comments on commit 3a60b5b

Please sign in to comment.