mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix php error
This commit is contained in:
parent
b8bd067dc7
commit
9de6697752
11 changed files with 20 additions and 9 deletions
|
@ -92,7 +92,7 @@ namespace controllers\internals;
|
|||
|
||||
unlink($media['path']);
|
||||
|
||||
return $this->get_model()->delete_for_user($id_user, $id);
|
||||
return $this->get_model()->delete_for_user($id_user, $id_media);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -13,6 +13,8 @@ namespace controllers\internals;
|
|||
|
||||
abstract class StandardController extends \descartes\InternalController
|
||||
{
|
||||
protected $bdd;
|
||||
|
||||
public function __construct(\PDO $bdd)
|
||||
{
|
||||
$this->bdd = $bdd;
|
||||
|
|
|
@ -18,6 +18,7 @@ namespace controllers\internals;
|
|||
{
|
||||
private $model_user;
|
||||
private $internal_event;
|
||||
private $internal_setting;
|
||||
|
||||
public function __construct(\PDO $bdd)
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace controllers\internals;
|
|||
|
||||
class Webhook extends StandardController
|
||||
{
|
||||
protected $bdd;
|
||||
protected $model;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue