summaryrefslogtreecommitdiff
path: root/src/web/_controller/_util
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-04-05 10:46:09 -0400
committerFreya Murphy <freya@freyacat.org>2024-04-05 10:46:09 -0400
commit530bbf058781e00e588f1457b6ee589a64b74da1 (patch)
treec6cdd382a86d55538686293e51a1fc056cb59029 /src/web/_controller/_util
parentremove var (diff)
downloadxssbook2-530bbf058781e00e588f1457b6ee589a64b74da1.tar.gz
xssbook2-530bbf058781e00e588f1457b6ee589a64b74da1.tar.bz2
xssbook2-530bbf058781e00e588f1457b6ee589a64b74da1.zip
i did thing oh god large commit
Diffstat (limited to 'src/web/_controller/_util')
-rw-r--r--src/web/_controller/_util/post.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web/_controller/_util/post.php b/src/web/_controller/_util/post.php
index 4da2671..5346497 100644
--- a/src/web/_controller/_util/post.php
+++ b/src/web/_controller/_util/post.php
@@ -79,9 +79,9 @@ class Post_controller extends Controller {
->where('p.id')->le($max);
}
- if ($uid) {
+ if ($filter_uid) {
$query = $query
- ->where('p.user_id')->eq($uid);
+ ->where('p.user_id')->eq($filter_uid);
}
$posts = $query
@@ -106,9 +106,9 @@ class Post_controller extends Controller {
->select('COUNT(p.id) as pc')
->from('api.post p');
- if ($uid) {
+ if ($filter_uid) {
$query = $query
- ->where('p.user_id')->eq($uid);
+ ->where('p.user_id')->eq($filter_uid);
}
$pc = $query