diff options
Diffstat (limited to 'includes/user.inc')
-rw-r--r-- | includes/user.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/user.inc b/includes/user.inc index 7d04c785f..4c640a7c4 100644 --- a/includes/user.inc +++ b/includes/user.inc @@ -42,7 +42,7 @@ function user_setHistory(&$user, $field, $value) { $history = $user->history; if (!$value) { - ### remove entry: + // remove entry: $data = explode(";", $history); for (reset($data); current($data); next($data)) { $entry = explode(":", current($data)); @@ -50,7 +50,7 @@ function user_setHistory(&$user, $field, $value) { } } else if (strstr($history, "$field:")) { - ### found: update exsisting entry: + // found: update exsisting entry: $data = explode(";", $history); for (reset($data); current($data); next($data)) { $entry = explode(":", current($data)); @@ -59,12 +59,12 @@ function user_setHistory(&$user, $field, $value) { } } else { - ### not found: add new entry: + // not found: add new entry: $rval = "$history$field:$value;"; } $user->history = $rval; - ### save new history: + // save new history: $query .= "UPDATE users SET "; foreach ($user->field as $key=>$field) { $value = $user->$field; $query .= "$field = '". addslashes($value) ."', "; } $query .= " id = $user->id WHERE id = $user->id"; @@ -75,4 +75,4 @@ function user_clean() { // todo - called by cron job } -?> +?>
\ No newline at end of file |