]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_country.php
A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / modules / admin / what-list_country.php
index 3d3c3806c968aa525e918cdbf4580d01cbcf6e55..54e16ff370efa90a091655355901ba3c30f6a087 100644 (file)
@@ -170,15 +170,16 @@ if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('code'))) && (REQUEST_
        if (SQL_NUMROWS($result) > 0) {
                // List all countries
                $OUT = ""; $SW = 2;
-               while (list($id, $code, $descr, $active) = SQL_FETCHROW($result)) {
+               while ($content = SQL_FETCHARRAY($result)) {
                        // Prepare array for the template
+                       // @TODO Rewritings: name->descr,status->is_active in template
                        $content = array(
-                               'id'     => $id,
-                               'code'   => $code,
-                               'name'   => $descr,
-                               'active' => TRANSLATE_YESNO($active),
+                               'id'     => $content['id'],
+                               'code'   => $content['code'],
+                               'name'   => $content['descr'],
+                               'active' => TRANSLATE_YESNO($content['is_active']),
                                'sw'     => $SW,
-                               'status' => $active,
+                               'status' => $content['is_active'],
                        );
 
                        // Load row template and switch colors