[ticket/12256] Selecting founders is fetching $sql instead of $result

PHPBB3-12256
This commit is contained in:
Forumhulp.com 2014-03-08 22:36:18 +01:00 committed by Andreas Fischer
parent 4fb19c8541
commit 86845e48a2

View file

@ -81,7 +81,7 @@ class admin_activate_user extends \phpbb\notification\type\base
WHERE user_type = ' . USER_FOUNDER; WHERE user_type = ' . USER_FOUNDER;
$result = $this->db->sql_query($sql); $result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($sql)) while ($row = $this->db->sql_fetchrow($result))
{ {
$users[] = (int) $row['user_id']; $users[] = (int) $row['user_id'];
} }