The name field has been renamed into person to be consistent with
authorJoey Schulze <joey@infodrom.org>
Fri, 10 May 2002 19:21:15 +0000 (19:21 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 10 May 2002 19:21:15 +0000 (19:21 +0000)
other tables.

src/LinuxTag/2002/supporter/update.wml

index 5f9873a..9ed59ad 100644 (file)
   } elseif ($type == "availability")
   {
        if ($name == "Selbstdefiniert") { $name = $name_self; }
-       $query = sprintf("UPDATE availability set name = '%s', starttime = '%s', " .
+       $query = sprintf("UPDATE availability set person = '%s', starttime = '%s', " .
                         " endtime = '%s', comment = '%s' where oid = %d",
                         addslashes($name), addslashes($starttime), addslashes($endtime),
                         addslashes($comment), $oid);
   } elseif ($type == "new_availability")
   {
        if ($name == "Selbstdefiniert") { $name = $name_self; }
-       $query = sprintf("INSERT INTO availability (name, starttime, endtime, comment) VALUES " . 
+       $query = sprintf("INSERT INTO availability (person, starttime, endtime, comment) VALUES " . 
                         " ('%s', '%s', '%s', '%s') ",
                         addslashes($name), addslashes($starttime), addslashes($endtime),
                         addslashes($comment));