Fixes for rallye (again) and missing array element
authorRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 14:24:22 +0000 (14:24 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 14:24:22 +0000 (14:24 +0000)
inc/functions.php
inc/modules/admin/what-config_rallye_prices.php

index 827cdb9..aa83e13 100644 (file)
@@ -43,6 +43,9 @@ if (!defined('__SECURITY')) {
 
 // Output HTML code directly or 'render' it. You addionally switch the new-line character off
 function outputHtml ($htmlCode, $newLine = true) {
+       // Init output
+       if (!isset($GLOBALS['output'])) $GLOBALS['output'] = '';
+
        // Transfer username
        $username = getMessage('USERNAME_UNKNOWN');
        if (isset($GLOBALS['username'])) $username = getUsername();
index f21bad0..63030d3 100644 (file)
@@ -97,8 +97,8 @@ VALUES ('%s','%s','%s','%s')",
        `{?_MYSQL_PREFIX?}_rallye_prices`
 SET
        `rallye_id`=%s,
-       `price_`level``='%s',
-       `points`='%s',
+       `price_level`=%d,
+       `points`=%s,
        `info`='%s'
 WHERE
        `id`=%s