1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-18 21:39:52 +02:00

[ticket/17145] Change static to private variable due to php81 inheritance

PHPBB3-17145
This commit is contained in:
im4bb 2023-06-13 21:35:03 +10:00 committed by Marc Alexander
parent 65fb35223c
commit 464466cade
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -40,6 +40,8 @@ abstract class profilefield_base_migration extends container_aware_migration
protected $user_column_name; protected $user_column_name;
private $profile_row;
public function effectively_installed() public function effectively_installed()
{ {
return $this->db_tools->sql_column_exists($this->table_prefix . 'profile_fields_data', 'pf_' . $this->profilefield_name); return $this->db_tools->sql_column_exists($this->table_prefix . 'profile_fields_data', 'pf_' . $this->profilefield_name);
@ -234,15 +236,13 @@ abstract class profilefield_base_migration extends container_aware_migration
protected function get_insert_sql_array() protected function get_insert_sql_array()
{ {
static $profile_row; if ($this->profile_row === null)
if ($profile_row === null)
{ {
/* @var $manager \phpbb\profilefields\manager */ /* @var $manager \phpbb\profilefields\manager */
$manager = $this->container->get('profilefields.manager'); $manager = $this->container->get('profilefields.manager');
$profile_row = $manager->build_insert_sql_array(array()); $this->profile_row = $manager->build_insert_sql_array(array());
} }
return $profile_row; return $this->profile_row;
} }
} }