From 97b7362842a2c6ebb547943f63b89a7e078b95d4 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Apr 2023 23:33:54 +0200 Subject: [PATCH] cosmetic --- src/Utils.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Utils.php b/src/Utils.php index f01f9cd..c3c9c29 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -38,7 +38,7 @@ class Utils ->from($sql->as(dcCore::app()->prefix . dcBlog::POST_TABLE_NAME, 'P')) ->columns([ $sql->count('*', 'count'), - 'U.user_id' + 'U.user_id', ]) ->join( (new JoinStatement()) @@ -55,7 +55,7 @@ class Utils ->limit(abs((int) $limit)); self::period($sql, $period, 'post_dt'); - + $rs = $sql->select(); if (is_null($rs) || $rs->isEmpty()) { @@ -65,7 +65,7 @@ class Utils $res = []; $i = 0; while ($rs->fetch()) { - $sql = new SelectStatement(); + $sql = new SelectStatement(); $user = $sql ->from(dcCore::app()->prefix . dcAuth::USER_TABLE_NAME) ->column('*') @@ -120,7 +120,7 @@ class Utils ->from($sql->as(dcCore::app()->prefix . dcBlog::COMMENT_TABLE_NAME, 'C')) ->columns([ $sql->count('*', 'count'), - 'comment_email' + 'comment_email', ]) ->where('blog_id = ' . $sql->quote(dcCore::app()->blog->id)) ->and('P.post_id = C.post_id') @@ -159,7 +159,7 @@ class Utils $res = []; $i = 0; while ($rs->fetch()) { - $sql = new SelectStatement(); + $sql = new SelectStatement(); $user = $sql ->from(dcCore::app()->prefix . dcBlog::COMMENT_TABLE_NAME) ->column('*')