summaryrefslogtreecommitdiff
path: root/lib/openid.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 23:32:12 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 23:32:12 -0400
commit4aedce6864eb27a0c37b3dcae22fee0aa16ae537 (patch)
treef17f65eff878beb73c71e319945babdbed22546d /lib/openid.php
parent0620e9f6680b45978fb49f31b93d70bb519ebfd5 (diff)
do some commits
darcs-hash:20080619033212-84dde-2f7227fe16c7015b03121424520ebd74d4b96762.gz
Diffstat (limited to 'lib/openid.php')
-rw-r--r--lib/openid.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/openid.php b/lib/openid.php
index 74d7d64a9..f5f98201d 100644
--- a/lib/openid.php
+++ b/lib/openid.php
@@ -51,15 +51,15 @@ function oid_link_user($id, $canonical, $display) {
$oid->display = $display;
$oid->created = DB_DataObject_Cast::dateTime();
- common_debug('oid = '.print_r($oid, TRUE), __FILE__);
-
if (!$oid->insert()) {
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
common_debug('DB error ' . $err->code . ': ' . $err->message, __FILE__);
return false;
}
-
- common_debug('oid = '.print_r($oid, TRUE), __FILE__);
+
+ # For some reason, autocommit is turned off
+
+ $oid->query('COMMIT');
return true;
}