]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/UserImport.php
Allow nullable UID in PConfigCache
[friendica.git] / src / Core / UserImport.php
index 8d02fb420e2143f34d88672dc0f0ab548e1e66f2..71767e8cef788be4cfa1f90b7c189d7dac63ad13 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Database\DBStructure;
 use Friendica\Model\Photo;
 use Friendica\Object\Image;
 use Friendica\Util\Strings;
+use Friendica\Worker\Delivery;
 
 /**
  * @brief UserImport class
@@ -53,7 +54,7 @@ class UserImport
                        }
 
                        if ($ttype[$icol] === 'datetime') {
-                               $arr[$icol] = !empty($ival) ? $ival : DBA::NULL_DATETIME;
+                               $arr[$icol] = $ival ?? DBA::NULL_DATETIME;
                        }
                }
        }
@@ -278,7 +279,7 @@ class UserImport
                }
 
                // send relocate messages
-               Worker::add(PRIORITY_HIGH, 'Notifier', 'relocate', $newuid);
+               Worker::add(PRIORITY_HIGH, 'Notifier', Delivery::RELOCATION, $newuid);
 
                info(L10n::t("Done. You can now login with your username and password"));
                $a->internalRedirect('login');