From 760684e638be1fe5cb84ea7c198f35f99c65e403 Mon Sep 17 00:00:00 2001 From: "ian%hixie.ch" Date: Sat, 10 Nov 2001 20:43:44 +0000 Subject: [PATCH] Return the user ID even when the user exists, so that there is no need for callers to check the return value. --- webtools/PLIF/PLIF/DataSource/User/MySQL.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/webtools/PLIF/PLIF/DataSource/User/MySQL.pm b/webtools/PLIF/PLIF/DataSource/User/MySQL.pm index 60070955c7fa..1a10691f124c 100644 --- a/webtools/PLIF/PLIF/DataSource/User/MySQL.pm +++ b/webtools/PLIF/PLIF/DataSource/User/MySQL.pm @@ -108,6 +108,7 @@ sub setUser { if (defined($userID)) { $self->database($app)->execute('UPDATE user SET mode=?, password=?, adminMessage=?, newFieldID=?, newFieldValue=?, newFieldKey=? WHERE userID = ?', $mode, $password, $adminMessage, $newFieldID, $newFieldValue, $newFieldKey, $userID); + return $userID; } else { return $self->database($app)->execute('INSERT INTO user SET mode=?, password=?, adminMessage=?, newFieldID=?, newFieldValue=?, newFieldKey=?', $mode, $password, $adminMessage, $newFieldID, $newFieldValue, $newFieldKey)->MySQLID;