From 5f619b3c68cf84c11752748c0fbc8c9c95005e8c Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 8 Apr 2023 18:46:53 +0200 Subject: [PATCH] fix type hint --- inc/class.dc.aliases.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/class.dc.aliases.php b/inc/class.dc.aliases.php index 6e56eb6..fc727a6 100644 --- a/inc/class.dc.aliases.php +++ b/inc/class.dc.aliases.php @@ -31,7 +31,7 @@ class dcAliases $this->aliases = []; $sql = 'SELECT alias_url, alias_destination, alias_position ' . 'FROM ' . dcCore::app()->prefix . initAlias::ALIAS_TABLE_NAME . ' ' . - "WHERE blog_id = '" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " . + "WHERE blog_id = '" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' " . 'ORDER BY alias_position ASC '; $this->aliases = dcCore::app()->con->select($sql)->rows(); @@ -87,8 +87,8 @@ class dcAliases { dcCore::app()->con->execute( 'DELETE FROM ' . dcCore::app()->prefix . initAlias::ALIAS_TABLE_NAME . ' ' . - "WHERE blog_id = '" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " . - "AND alias_url = '" . dcCore::app()->con->escape($url) . "' " + "WHERE blog_id = '" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' " . + "AND alias_url = '" . dcCore::app()->con->escapeStr((string) $url) . "' " ); } @@ -96,7 +96,7 @@ class dcAliases { dcCore::app()->con->execute( 'DELETE FROM ' . dcCore::app()->prefix . initAlias::ALIAS_TABLE_NAME . ' ' . - "WHERE blog_id = '" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " + "WHERE blog_id = '" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' " ); }