Nouvelle classe Membre, différente. D'autres modifs....

This commit is contained in:
Mysaa
2021-06-06 12:54:42 +02:00
parent 38ec48c9fc
commit e59898b0bb
42 changed files with 2006 additions and 455 deletions
+1 -2
View File
@@ -23,7 +23,7 @@ class Article {
$this->text = $rep['text'];
$this->postDate = $rep['postDate'];
$this->lastNoticeableChangeDate = $rep['lastNoticeableChangeDate'];
$this->lastChange = $rep['lastChange'];
$this->lastChange = $rep['lastChangeDate'];
$this->picPath = $rep['picPath'];
}else{
$this->valid = FALSE;
@@ -119,7 +119,6 @@ class Article {
$req = $GLOBALS['bdd']->prepare('SELECT * FROM articles ORDER BY lastNoticeableChangeDate DESC LIMIT '.intval($count));
$req->execute();
$reps = array();
$GLOBALS['bdd']->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
while($rep = $req->fetch()){
$reps[] = new Article($rep['ID']);
}