ADD_DESCR('admin', __FILE__);
// Check if the admin has entered title and what-php file name...
-if ((!REQUEST_ISSET_POST(('title'))) && (IS_FORM_SENT())) {
+if ((!REQUEST_ISSET_POST('title')) && (isFormSent())) {
REQUEST_UNSET_POST('ok');
} // END - if
-if (!IS_FORM_SENT()) {
+if (!isFormSent()) {
// Create arrays
$menus = array(); $titles = array(); $below = array();
__FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// Read menu structure
+ // @TODO Cant this be rewritten?
while ($content = SQL_FETCHARRAY($result)) {
// Menu actions
$menus[] = $content['action'];
// Below this menu point should the new be added so we simply increase the sort value by 1 :-)
$below[] = $content['sort'] + 1;
- }
+ } // END - if
// Free memory
SQL_FREERESULT($result);
$OUT .= "</select>";
define('__BELOW_SELECTION' , $OUT);
- define('__WHAT_SELECTION' , ADMIN_MAKE_MENU_SELECTION('member', "what", "name"));
- define('__ACTION_SELECTION', ADMIN_MAKE_MENU_SELECTION('member', "action", "menu"));
+ define('__WHAT_SELECTION' , ADMIN_MAKE_MENU_SELECTION('member', 'what', "name"));
+ define('__ACTION_SELECTION', ADMIN_MAKE_MENU_SELECTION('member', 'action', "menu"));
// Display form
LOAD_TEMPLATE("admin_member_add");