]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/actions/qnashowquestion.php
Squashed commit of the following:
[quix0rs-gnu-social.git] / plugins / QnA / actions / qnashowquestion.php
index edea032b388486c98d0e689b5d003ac226ef2d17..ca2cb74ba1d751c2279b4c5db7007a39f154b02d 100644 (file)
@@ -115,13 +115,7 @@ class QnashowquestionAction extends ShownoticeAction
         }
 
         if (count($answerIds) > 0) {
-            $notice = new Notice();
-            $notice->query(
-                sprintf(
-                    'SELECT notice.* FROM notice WHERE notice.id IN (%s)',
-                    implode(',', $answerIds)
-                )
-            );
+            $notice = Notice::multiGet('id', $answerIds);
 
             $nli = new NoticeList($notice, $this);
             $nli->show();