summaryrefslogtreecommitdiff
path: root/includes/user.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-12-30 11:58:14 +0000
committerDries Buytaert <dries@buytaert.net>2000-12-30 11:58:14 +0000
commit44c48004346e5956cefbd5ebd558a4406cc61253 (patch)
tree174d686bc2fd83da9930f6bf20de9864ef34e71c /includes/user.inc
parent83f6495c9aa810a884b7ca2c44d19f3f32b6092a (diff)
downloadbrdo-44c48004346e5956cefbd5ebd558a4406cc61253.tar.gz
brdo-44c48004346e5956cefbd5ebd558a4406cc61253.tar.bz2
- here a bunch of changes to make "drupal" (for now) work with PHP 4.0.4
- tidied up some of the code and mainly working on the documentation
Diffstat (limited to 'includes/user.inc')
-rw-r--r--includes/user.inc10
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