Skip to content

Commit

Permalink
fixed broken table prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vendeeglobe committed Sep 20, 2022
1 parent b475fa4 commit d9a3b3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/admin/module/maint_resync.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function admin_maint_resync(&$engine, $module)
$sql[] = "UPDATE " . $prefix . "user u,
(SELECT p.owner_id as user_id, COUNT(p.tag) AS n
FROM " . $prefix . "page p,
{$prefix} user o
{$prefix}user o
WHERE p.owner_id = o.user_id
AND p.comment_on_id <> 0
AND p.deleted <> 1
Expand All @@ -54,7 +54,7 @@ function admin_maint_resync(&$engine, $module)
$sql[] = "UPDATE " . $prefix . "user u,
(SELECT o.user_id, COUNT(p.tag) AS n
FROM " . $prefix . "page p,
{$prefix} user o
{$prefix}user o
WHERE p.owner_id = o.user_id
AND p.comment_on_id = 0
AND p.deleted <> 1
Expand All @@ -67,7 +67,7 @@ function admin_maint_resync(&$engine, $module)
$sql[] = "UPDATE " . $prefix . "user u,
(SELECT r.user_id, COUNT(r.page_id) AS n
FROM " . $prefix . "revision r,
{$prefix} user o
{$prefix}user o
WHERE r.owner_id = o.user_id
AND r.comment_on_id = 0
GROUP BY r.user_id) AS s
Expand All @@ -79,7 +79,7 @@ function admin_maint_resync(&$engine, $module)
$sql[] = "UPDATE " . $prefix . "user u,
(SELECT o.user_id, COUNT(f.file_id) AS n
FROM " . $prefix . "file f,
{$prefix} user o
{$prefix}user o
WHERE f.user_id = o.user_id
AND f.deleted <> 1
GROUP BY f.user_id) AS s
Expand Down

0 comments on commit d9a3b3c

Please sign in to comment.