]> git.mxchange.org Git - friendica.git/blobdiff - include/uimport.php
Opps, tpzo found ...
[friendica.git] / include / uimport.php
index 937a16710a9211214547600da5555b4d13134d69..51672d92b6a27919704028408f8aa550b94e719c 100644 (file)
@@ -116,7 +116,7 @@ function import_account(&$a, $file) {
                notice(t('Error! Cannot check nickname'));\r
                return;\r
        }\r
-       if (count($r) > 0) {\r
+       if (dbm::is_result($r) > 0) {\r
                notice(sprintf(t("User '%s' already exists on this server!"), $account['user']['nickname']));\r
                return;\r
        }\r
@@ -127,7 +127,7 @@ function import_account(&$a, $file) {
                notice(t('Error! Cannot check nickname'));\r
                return;\r
        }\r
-       if (count($r) > 0) {\r
+       if (dbm::is_result($r) > 0) {\r
                notice(sprintf(t("User '%s' already exists on this server!"), $account['user']['nickname']));\r
                return;\r
        }\r