<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// Retreive photo informations
$res = XDB::query("SELECT pub
- FROM photo
- WHERE uid = {?}", $this->pid());
+ FROM profile_photos
+ WHERE pid = {?}", $this->pid());
$this->values['photo_pub'] = $res->fetchOneCell();
if ($this->owner) {
$this->pid(), $new_email);
}
if ($this->changed['photo_pub']) {
- XDB::execute("UPDATE photo
+ XDB::execute("UPDATE profile_photos
SET pub = {?}
- WHERE uid = {?}",
+ WHERE pid = {?}",
$this->values['photo_pub'], $this->pid());
}
if ($this->changed['yourself']) {