Commit 146c18fb authored by Armando Lüscher's avatar Armando Lüscher Committed by David Morley

Fix RedBeans bugs that slipped through. (#129)

parent 7d7ca56c
......@@ -53,13 +53,13 @@ foreach ($pods as $pod) {
$expire = time() + 2700;
try {
$p = R::findOne('pods', $pod['id']);
$p = R::load('pods', $pod['id']);
$p['token'] = $uuid;
$p['tokenexpire'] = date('Y-m-d H:i:s', $expire);
// @todo Temporary fix! https://github.com/gabordemooij/redbean/issues/547
foreach ($p->getProperties() as $key => $value) {
$pod[$key] = $value;
$p[$key] = $value;
}
R::store($p);
......@@ -112,7 +112,7 @@ if (stristr($outputssl, 'openRegistrations')) {
// @todo Temporary fix! https://github.com/gabordemooij/redbean/issues/547
foreach ($p->getProperties() as $key => $value) {
$pod[$key] = $value;
$p[$key] = $value;
}
R::store($p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment