fix type hint

This commit is contained in:
Jean-Christian Paul Denis 2023-04-08 10:26:12 +02:00
parent 2675d73b09
commit 66500016ab
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -38,7 +38,7 @@ class FrontendBehaviors
'FROM ' . dcCore::app()->prefix . dcBlog::POST_TABLE_NAME . ' P ' . 'FROM ' . dcCore::app()->prefix . dcBlog::POST_TABLE_NAME . ' P ' .
'INNER JOIN ' . dcCore::app()->prefix . dcMeta::META_TABLE_NAME . ' META ' . 'INNER JOIN ' . dcCore::app()->prefix . dcMeta::META_TABLE_NAME . ' META ' .
'ON META.post_id = P.post_id ' . 'ON META.post_id = P.post_id ' .
"WHERE blog_id = '" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " . "WHERE blog_id = '" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' " .
// Removed for quick compatibility with some plugins // Removed for quick compatibility with some plugins
//"AND P.post_type = 'post' " . //"AND P.post_type = 'post' " .
"AND META.meta_type = '" . My::META_TYPE . "' " "AND META.meta_type = '" . My::META_TYPE . "' "
@ -119,7 +119,7 @@ class FrontendBehaviors
# Update post # Update post
$post_cur->update( $post_cur->update(
'WHERE post_id = ' . $posts->f('post_id') . ' ' . 'WHERE post_id = ' . $posts->f('post_id') . ' ' .
"AND blog_id = '" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " "AND blog_id = '" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' "
); );
$updated = true; $updated = true;