summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index df2a7218b..c89588acf 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -458,7 +458,7 @@ function common_rememberme() {
$rm = new Remember_me();
$rm->code = common_good_rand(16);
$rm->user = $user->id();
- if (!$rm->insert) {
+ if (!$rm->insert()) {
common_log_db_error($rm, 'INSERT', __FILE__);
return false;
}