Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

piccolo bug #1

Closed
wants to merge 1 commit into from

3 participants

@Yehonal

questo è solo un test della funzionalità pull request, e intanto colgo l'occasione di inviarti un piccolo bugfix che è importante per l'ACP.

ps percaso vuoi che li scriva in inglese i pull request?

@Informpro

Still open ?

@MightyGorgon

I don't think is a bug.

@Informpro

Well. It's not a bug on some SQL versions but with the last Wamp i've got a problem on the same file, same line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 26, 2010
  1. @Yehonal
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  includes/functions_mg_log.php
View
2  includes/functions_mg_log.php
@@ -99,7 +99,7 @@ function ip_log($content, $db_log, $error_log = false)
$new_log_id = $row['max_log_id'] + 1;
$sql = "INSERT INTO " . LOGS_TABLE . " (log_id, log_time, log_page, log_user_id, log_action, log_desc, log_target)
- VALUES ('" . $new_log_id . "', '" . time() ."', '" . $page_array['page'] . "', '" . $userdata['user_id'] . "', '" . $db->sql_escape($db_log['action']) . "', '" . $db->sql_escape($db_log['desc']) . "', '')";
+ VALUES ('" . $new_log_id . "', '" . time() ."', '" . $page_array['page'] . "', '" . $userdata['user_id'] . "', '" . $db->sql_escape($db_log['action']) . "', '" . $db->sql_escape($db_log['desc']) . "', 0)";
$result = $db->sql_query($sql);
if (($error_log) && $config['db_log_actions'] == '2')
Something went wrong with that request. Please try again.