fix type hint

This commit is contained in:
Jean-Christian Paul Denis 2023-04-08 18:46:53 +02:00
parent c251c870d2
commit 5f619b3c68
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -31,7 +31,7 @@ class dcAliases
$this->aliases = []; $this->aliases = [];
$sql = 'SELECT alias_url, alias_destination, alias_position ' . $sql = 'SELECT alias_url, alias_destination, alias_position ' .
'FROM ' . dcCore::app()->prefix . initAlias::ALIAS_TABLE_NAME . ' ' . '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 '; 'ORDER BY alias_position ASC ';
$this->aliases = dcCore::app()->con->select($sql)->rows(); $this->aliases = dcCore::app()->con->select($sql)->rows();
@ -87,8 +87,8 @@ class dcAliases
{ {
dcCore::app()->con->execute( dcCore::app()->con->execute(
'DELETE FROM ' . dcCore::app()->prefix . initAlias::ALIAS_TABLE_NAME . ' ' . '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) . "' " .
"AND alias_url = '" . dcCore::app()->con->escape($url) . "' " "AND alias_url = '" . dcCore::app()->con->escapeStr((string) $url) . "' "
); );
} }
@ -96,7 +96,7 @@ class dcAliases
{ {
dcCore::app()->con->execute( dcCore::app()->con->execute(
'DELETE FROM ' . dcCore::app()->prefix . initAlias::ALIAS_TABLE_NAME . ' ' . '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) . "' "
); );
} }