mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 07:27:17 +02:00
[ticket/10411] Fix call to function on non-object $db->...()
PHPBB3-10411
This commit is contained in:
parent
b8b2ede35d
commit
19c3917de9
@ -82,7 +82,7 @@ class phpbb_db_migration_data_310_teampage extends phpbb_db_migration
|
|||||||
$result = $this->db->sql_query($sql);
|
$result = $this->db->sql_query($sql);
|
||||||
|
|
||||||
$teampage_entries = array();
|
$teampage_entries = array();
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $this->db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$teampage_entries[] = array(
|
$teampage_entries[] = array(
|
||||||
'group_id' => (int) $row['group_id'],
|
'group_id' => (int) $row['group_id'],
|
||||||
@ -91,7 +91,7 @@ class phpbb_db_migration_data_310_teampage extends phpbb_db_migration
|
|||||||
'teampage_parent' => 0,
|
'teampage_parent' => 0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
if (sizeof($teampage_entries))
|
if (sizeof($teampage_entries))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user