Skip to content

Commit

Permalink
index.php: fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RedDragonWebDesign committed Jan 25, 2024
1 parent c2814ff commit 5a8763a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/btmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class btMail {
private $objPHPMailer;

/** General e-mail function using PHPMailer */
public function sendMail($to, $subject = "", $message, $additional = array()) {
public function sendMail($to, $subject, $message, $additional = array()) {

$mail = new PHPMailer();
$this->objPHPMailer = $mail;
Expand Down
2 changes: 1 addition & 1 deletion src/classes/btmysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class btMySQL extends MySQLi {
protected $bt_TestingMode;

/** In debug mode, this query() override method will enable SQL query profiling. That is, it will keep track of every query made, and it will be printed at the bottom of the page. */
function query($query, $resultmode = MYSQLI_STORE_RESULT) {
function query($query, $resultmode = MYSQLI_STORE_RESULT): mysqli_result|bool {
global $SQL_PROFILER, $debug;
if ( $debug ) {
$start = microtime(true);
Expand Down

0 comments on commit 5a8763a

Please sign in to comment.