Fix 'Only variables should be passed by reference' notices in PHP7

pull/9/head
FranklinDM 6 years ago
parent 269d4da4f6
commit feb449e479
No known key found for this signature in database
GPG Key ID: E1DC90EBF60BBE8F

@ -198,7 +198,8 @@
else if ($_SERVER['REQUEST_METHOD'] == 'PUT') #add a single record to the server
{
$wbo = new wbo();
if (!$wbo->extract_json(get_json()))
$json = get_json();
if (!$wbo->extract_json($json))
report_problem(WEAVE_ERROR_JSON_PARSE, 400);
check_quota($db);

@ -737,10 +737,11 @@ class WeaveStorage
try
{
$update_statement = "update users set login = :logintime where username = :username";
$time = time();
$sth = $this->_dbh->prepare($update_statement);
$sth->bindParam(':username', $username);
$sth->bindParam(':logintime', time());
$sth->bindParam(':logintime', $time);
$sth->execute();
}
catch( PDOException $exception )

Loading…
Cancel
Save