]> git.mxchange.org Git - friendica.git/commitdiff
We have to fetch the data this way
authorMichael <heluecht@pirati.ca>
Sat, 2 Mar 2019 13:07:29 +0000 (13:07 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 Mar 2019 13:07:29 +0000 (13:07 +0000)
src/Core/Update.php

index e4ed4a478ff55c3b222646f151ec25896637afe7..e0a7c4a266be545dd1b745a0c610ee17c4c957b1 100644 (file)
@@ -223,7 +223,7 @@ class Update
                $sent = [];
 
                // every admin could had different language
-               foreach ($adminlist as $admin) {
+               while ($admin = DBA::fetch($adminlist)) {
                        if (in_array($admin['email'], $sent)) {
                                continue;
                        }
@@ -265,7 +265,7 @@ class Update
                        $sent = [];
 
                        // every admin could had different language
-                       foreach ($adminlist as $admin) {
+                       while ($admin = DBA::fetch($adminlist)) {
                                if (in_array($admin['email'], $sent)) {
                                        continue;
                                }