1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[ticket/13803] Moved the add_missing_fields() call to the base class

PHPBB3-13803
This commit is contained in:
JoshyPHP
2015-05-09 18:54:57 +02:00
parent 2dc19cec9d
commit ae6ad754a4
2 changed files with 2 additions and 4 deletions

View File

@@ -65,10 +65,7 @@ abstract class row_based_plugin extends base
protected function get_records($min_id, $max_id)
{
$result = $this->db->sql_query($this->get_records_query($min_id, $max_id));
while ($row = $this->db->sql_fetchrow($result))
{
$records[] = $this->add_missing_fields($row);
}
$records = $this->db->sql_fetchrowset($result);
$this->db->sql_freeresult($result);
return $records;