(Possible) fixes for illegal array indexes
authorRoland Häder <roland@mxchange.org>
Sun, 26 Jul 2009 20:17:43 +0000 (20:17 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 26 Jul 2009 20:17:43 +0000 (20:17 +0000)
inc/libs/register_functions.php
inc/modules/admin/what-admins_edit.php
inc/modules/admin/what-config_points.php

index b0230f73da0c61642dfb015e50fa3cc78599c8ab..19f26b4ef17294d8acd4f2ece9a91e6326c2a5a5 100644 (file)
@@ -133,7 +133,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
                        // Is the array element not set?
                        if (!REQUEST_ISSET_POST('cat', $content['id'])) {
                                // Then set it
                        // Is the array element not set?
                        if (!REQUEST_ISSET_POST('cat', $content['id'])) {
                                // Then set it
-                               REQUEST_SET_POST(array('cat', $content['id']), '');
+                               REQUEST_SET_POST('cat' => array($content['id'] => ''));
                        } // END - if
 
                        // Prepare array for the template
                        } // END - if
 
                        // Prepare array for the template
index e0528331ae3be7fd0ed6ab9b7a8c913767d25495..45c18bfeac8a5b0d89012acaa1258a5ae06f71e3 100644 (file)
@@ -55,7 +55,7 @@ if (REQUEST_ISSET_GET('admin')) {
 
        // Set required fields
        REQUEST_SET_POST('edit', '1');
 
        // Set required fields
        REQUEST_SET_POST('edit', '1');
-       REQUEST_SET_POST(array('sel', $aid), '1');
+       REQUEST_SET_POST('sel', array($aid => '1'));
 } // END - if
 
 if ((REQUEST_ISSET_POST('edit')) && (countPostSelection() > 0)) {
 } // END - if
 
 if ((REQUEST_ISSET_POST('edit')) && (countPostSelection() > 0)) {
index 6cfa96aa661d939c3a5ec9652c770b982cab2986..0fd1f0b3a1ed41d3e0d178235b4b3cdd75ac5765 100644 (file)
@@ -93,7 +93,7 @@ if (isFormSent()) {
                                                $id = bigintval($id);
 
                                                // Revert german commata
                                                $id = bigintval($id);
 
                                                // Revert german commata
-                                               REQUEST_SET_POST(array('perc', $id), convertCommaToDot(REQUEST_POST('perc', $id)));
+                                               REQUEST_SET_POST('perc' => array($id => convertCommaToDot(REQUEST_POST('perc', $id))));
 
                                                // Update entry
                                                SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_refdepths` SET level='%s', percents='%s' WHERE `id`=%s LIMIT 1",
 
                                                // Update entry
                                                SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_refdepths` SET level='%s', percents='%s' WHERE `id`=%s LIMIT 1",