Warning: Attempt to read property "code" on null in /home/xl6/public_html/les5langagesdelamour/app/controllers/Livres.php on line 16

Fatal error: Uncaught TypeError: Livre::getColor(): Argument #1 ($code) must be of type string, null given, called in /home/xl6/public_html/les5langagesdelamour/app/controllers/Livres.php on line 16 and defined in /home/xl6/public_html/les5langagesdelamour/app/models/Livre.php:47 Stack trace: #0 /home/xl6/public_html/les5langagesdelamour/app/controllers/Livres.php(16): Livre->getColor() #1 /home/xl6/public_html/les5langagesdelamour/app/libraries/Core.php(31): Livres->index() #2 /home/xl6/public_html/les5langagesdelamour/app/bootstrap.php(17): Core->__construct() #3 /home/xl6/public_html/les5langagesdelamour/public/index.php(2): require_once('/home/xl6/publi...') #4 {main} thrown in /home/xl6/public_html/les5langagesdelamour/app/models/Livre.php on line 47