if(!@getimagesize($link->path().'DivXDB/images/image_tmp/'.$card->id.'.jpg'))
{
#si l'image n'est pas valide (en tant que jpeg) alors l'efface de la BD
- mysql_query("update movie set image = '' where id = ".$card->id, $glob->get('_the_db_'));
+ pg_query_params($glob->get('_the_db_'), "update movie set image = '' where id = $1", array($card->id));
unlink($link->path().'DivXDB/images/image_tmp/'.$card->id.'.jpg');
}
}