Use `\str_starts_with()` in IPB4 exporter
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Jan 2022 14:46:57 +0000 (15:46 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Jan 2022 14:46:57 +0000 (15:46 +0100)
see 1994bd0d00b2eb8841fe7cac639f2e8857153cea

files/lib/system/exporter/IPB4xExporter.class.php

index 402eb0049ff05b8500fe9b1c2f6291353b9812f4..62eff8da779144a5d6d2518e4cf9ebc8d57bd584 100644 (file)
@@ -353,7 +353,7 @@ class IPB4xExporter extends AbstractExporter
 
             // update password hash
             if ($newUserID) {
-                if (StringUtil::startsWith($row['members_pass_hash'], '$2')) {
+                if (\str_starts_with($row['members_pass_hash'], '$2')) {
                     $password = 'Bcrypt:' . $row['members_pass_hash'];
                 } else {
                     $password = 'cryptMD5:' . $row['members_pass_hash'] . ':' . ($row['members_pass_salt'] ?: '');