Naming convention applied, ext-network menu resorted:
[mailer.git] / inc / modules / admin / what-list_network_translations.php
index d5a0dc7f08b70464e5084071bafed9008f0d2622..c1d44d5f8e6232f45633cda839fe1f208394e09c 100644 (file)
@@ -79,18 +79,15 @@ FROM
 ORDER BY
        `network_translate_id` ASC", __FILE__, __LINE__);
 
-       // Remember the rows
-       $rows = SQL_NUMROWS($result);
-
        // Do we have entries?
-       if ($rows > 0) {
+       if (SQL_NUMROWS($result) > 0) {
                // List all entries
                $OUT = '';
                while ($row = SQL_FETCHARRAY($result)) {
                        // Add it to network if the type matches selected
                        if ($row['network_type_id'] == getRequestParameter('network_type_id')) {
                                // Matches, then add it for disabling this entry
-                               $GLOBALS['network_translations_disabled'][$row['network_array_index']] = true;
+                               $GLOBALS['network_translations_disabled'][$row['network_translate_id']] = true;
                        } // END - if
 
                        // Add row template and switch color