A lot texts rewritten and exclamation signs removed
[mailer.git] / inc / modules / admin / what-guestedit.php
index a49c13b302473b63b34ccf4982a5699ec7ff0645..9fc694c62ebcb880e9a29fb3956dc1bf8a2cdc2e 100644 (file)
@@ -232,7 +232,7 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
        loadTemplate('admin_gmenu_status', false, $content);
 } else {
        if ((isGetRequestElementSet('act')) && (isGetRequestElementSet('tid')) && (isGetRequestElementSet('fid'))) {
-               // Get IDs
+               // Get ids
                if (isGetRequestElementSet('w')) {
                        // Sub menus selected
                        $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `action`='%s' AND `sort`='%s' LIMIT 1",
@@ -306,10 +306,10 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
                        // Prepapre content
                        $row = array(
                                'sw'     => $SW,
-                               'id'     => $row['id'],
-                               'action' => $row['action'],
-                               'what'   => $row['what'],
-                               'title'  => $row['title'],
+                               'id'     => $data['id'],
+                               'action' => $data['action'],
+                               'what'   => $data['what'],
+                               'title'  => $data['title'],
                                'navi'   => $NAVI,
                                'mode'   => 'guest'
                        );
@@ -319,6 +319,9 @@ if ((isPostRequestElementSet('edit')) && ($chk > 0) && (!isDemoModeActive())) {
                        $SW = 3 - $SW;
                } // END - while
 
+               // Add rows
+               $content['rows'] = $OUT;
+
                // Free memory
                SQL_FREERESULT($result);