[WIP] Refactor project

This commit is contained in:
Ludovic CANDELLIER
2021-05-21 00:21:05 +02:00
parent 4ce0fa942d
commit b50f50ea62
347 changed files with 14104 additions and 1608 deletions

View File

@@ -89,7 +89,7 @@ class Articles
public static function store($data)
{
$id = isset($data['id']) ? $data['id'] : false;
return $id ? self::update($data) : self::create($data);
return $id ? self::update($data, $id) : self::create($data);
}
public static function create($data)