We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 77cefb69 authored by tobyink's avatar tobyink

Add place to Places table.

parent 55b14483
......@@ -72,6 +72,18 @@ class User {
function save ()
{
global $mdb2;
if (!empty($this->location_uri))
{
$res = $mdb2->query('SELECT * FROM Places WHERE location_uri = ' . $mdb2->quote($this->location_uri, 'text'));
if(! $res->numRows())
{
$mdb2->query('INSERT INTO Places VALUES (' . $mdb2->quote($this->location_uri, 'text') . ')');
}
}
$q = sprintf("UPDATE Users SET "
. "email=%s, " # Send a confirmation email first??
. "fullname=%s, "
......
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