* Events:
- Switch to the new URI scheme. -MC/FRU
- Rework Events administration interface. -FRU
+ - Create a new Newsletter if needed -FRU
* Geoloc:
- Switch to the new URI scheme. -MC/Car
* Profile:
- Switch to the new URI scheme. -MC
+ - Add photo and nickname in vcard -FRU
* Register:
- Switch to the new URI scheme. -MC
$res = XDB::query("SELECT * FROM newsletter WHERE id={?}", $id);
} else {
$res = XDB::query("SELECT * FROM newsletter WHERE bits='new'");
- }
+ if (!$res->numRows()) {
+ insert_new_nl();
+ }
+ $res = XDB::query("SELECT * FROM newsletter WHERE bits='new'");
+ }
$nl = $res->fetchOneAssoc();
$this->_id = $nl['id'];
function setSent()
{
- XDB::execute("UPDATE newsletter SET bits='sent' WHERE id={?}", $this->_id);
+ XDB::execute("UPDATE newsletter SET bits='sent' WHERE id={?}", $this->_id);
}
// }}}