aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislav Atanasov <lucifer@anavaro.com>2014-06-26 20:56:00 +0300
committerStanislav Atanasov <lucifer@anavaro.com>2014-06-26 20:56:00 +0300
commitdeb393bff3d829b6531dd8ef18023e41f8d3357c (patch)
tree0c235c1029ab6a738db36a9debbc08be018119dd
parentc14db9ccd088a5b5cccf2ffb1cc4b1d5abd6ed89 (diff)
downloadforums-deb393bff3d829b6531dd8ef18023e41f8d3357c.tar
forums-deb393bff3d829b6531dd8ef18023e41f8d3357c.tar.gz
forums-deb393bff3d829b6531dd8ef18023e41f8d3357c.tar.bz2
forums-deb393bff3d829b6531dd8ef18023e41f8d3357c.tar.xz
forums-deb393bff3d829b6531dd8ef18023e41f8d3357c.zip
[ticket/12771] Shanging substr to strpos
Logical change ... PHPBB3-12771
-rw-r--r--phpBB/phpbb/db/migration/profilefield_base_migration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/migration/profilefield_base_migration.php b/phpBB/phpbb/db/migration/profilefield_base_migration.php
index 73bb674e5e..d416a9b228 100644
--- a/phpBB/phpbb/db/migration/profilefield_base_migration.php
+++ b/phpBB/phpbb/db/migration/profilefield_base_migration.php
@@ -79,7 +79,7 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration
$sql = 'SELECT lang_id
FROM ' . LANG_TABLE;
$result = $this->db->sql_query($sql);
- $lang_name = (substr($this->profilefield_name, 6) == 'phpbb_') ? strtoupper(substr($this->profilefield_name, 6)) : strtoupper($this->profilefield_name);
+ $lang_name = (strpos($this->profilefield_name, 'phpbb_') === 0) ? strtoupper(substr($this->profilefield_name, 6)) : strtoupper($this->profilefield_name);
while ($lang_id = (int) $this->db->sql_fetchfield('lang_id'))
{
$insert_buffer->insert(array(