From 0ec5933f130bc9ac5063fb8dd9a0e183abfa82e6 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 7 Apr 2023 23:53:11 +0200 Subject: [PATCH] fix type hint --- src/Utils.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Utils.php b/src/Utils.php index 402ad07..1603064 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -27,7 +27,7 @@ class Utils $req = 'SELECT COUNT(*) AS count, U.user_id ' . 'FROM ' . dcCore::app()->prefix . dcBlog::POST_TABLE_NAME . ' P ' . 'INNER JOIN ' . dcCore::app()->prefix . dcAuth::USER_TABLE_NAME . ' U ON U.user_id = P.user_id ' . - "WHERE blog_id='" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " . + "WHERE blog_id='" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' " . 'AND post_status=1 AND user_status=1 ' . self::period('post_dt', $period) . 'GROUP BY U.user_id ' . @@ -85,7 +85,7 @@ class Utils $req = 'SELECT COUNT(*) AS count, comment_email ' . 'FROM ' . dcCore::app()->prefix . dcBlog::POST_TABLE_NAME . ' P, ' . dcCore::app()->prefix . dcBlog::COMMENT_TABLE_NAME . ' C ' . 'WHERE P.post_id=C.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) . "' " . 'AND post_status=1 AND comment_status=1 ' . self::period('comment_dt', $period); @@ -94,7 +94,7 @@ class Utils ' SELECT U.user_email ' . ' FROM ' . dcCore::app()->prefix . dcAuth::USER_TABLE_NAME . ' U' . ' INNER JOIN ' . dcCore::app()->prefix . dcBlog::POST_TABLE_NAME . ' P ON P.user_id = U.user_id ' . - " WHERE blog_id='" . dcCore::app()->con->escape(dcCore::app()->blog->id) . "' " . + " WHERE blog_id='" . dcCore::app()->con->escapeStr((string) dcCore::app()->blog->id) . "' " . ' GROUP BY U.user_email) '; }