We have to fetch the data this way
[friendica.git/.git] / src / Core / Update.php
index e4ed4a4..e0a7c4a 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;
                                }