öffne: includes/functions_shop.php
suche:
Code: Alles auswählen
function update_cash($new_cash, $user_id)
{
global $db, $lang, $table_prefix;
define('CASH_TABLE', $table_prefix.'cash');
$sql = "SELECT cm.cash_dbfield FROM ".CASH_TABLE." cm ORDER BY cm.cash_id ASC LIMIT 1";
if( !( $result = $db->sql_query($sql) ))
{
message_die(CRITICAL_ERROR, 'could not obtain cash field', '', __LINE__, __FILE__, $sql);
}
$field = $db->sql_fetchrow($result);
$field = $field['cash_dbfield'];
ersetze mit:
Code: Alles auswählen
function update_cash($new_cash, $user_id)
{
global $db, $lang, $table_prefix;
define('CASH_TABLE', $table_prefix.'cash');
$sql = "SELECT cm.cash_dbfield FROM ".CASH_TABLE." cm ORDER BY cm.cash_id DESC LIMIT 1";
if( !( $result = $db->sql_query($sql) ))
{
message_die(CRITICAL_ERROR, 'could not obtain cash field', '', __LINE__, __FILE__, $sql);
}
$field = $db->sql_fetchrow($result);
$field = $field['cash_dbfield'];
suche:
Code: Alles auswählen
function get_cash($user_id)
{
global $db, $lang, $userdata, $table_prefix;
define('CASH_TABLE', $table_prefix.'cash');
$sql = "SELECT cm.cash_dbfield FROM ".CASH_TABLE." cm ORDER BY cm.cash_id ASC LIMIT 1";
if( !( $result = $db->sql_query($sql) ))
{
message_die(CRITICAL_ERROR, 'could not obtain cash field', '', __LINE__, __FILE__, $sql);
}
$field = $db->sql_fetchrow($result);
$field = $field['cash_dbfield'];
ersetze mit:
Code: Alles auswählen
function get_cash($user_id)
{
global $db, $lang, $userdata, $table_prefix;
define('CASH_TABLE', $table_prefix.'cash');
$sql = "SELECT cm.cash_dbfield FROM ".CASH_TABLE." cm ORDER BY cm.cash_id DESC LIMIT 1";
if( !( $result = $db->sql_query($sql) ))
{
message_die(CRITICAL_ERROR, 'could not obtain cash field', '', __LINE__, __FILE__, $sql);
}
$field = $db->sql_fetchrow($result);
$field = $field['cash_dbfield'];