TypeError
Description
Message: |
substr() expects parameter 1 to be string, null given |
File: |
/var/www/carwashquiz/models/ActiveRecord/Klant.php |
Line: |
92 |
Source Code
81 |
return 'https://www.instagram.com/' . $this->instagram_url;
|
82 |
}
|
83 |
|
84 |
public function isFormeel() : bool
|
85 |
{
|
86 |
return $this->aanspreekvorm === 'formeel';
|
87 |
}
|
88 |
|
89 |
public function isTaalFr() : bool
|
90 |
{
|
91 |
return $this->taal === 'be'
|
92 |
&& (substr(Load::request()->get('HTTP_ACCEPT_LANGUAGE'), 0, 2) === 'fr');
|
93 |
}
|
94 |
|
95 |
public function logo() : string
|
96 |
{
|
97 |
return 'klant/logo/' . $this->logo;
|
98 |
}
|
99 |
|
100 |
public function naam() : string
|
101 |
{
|
102 |
return $this->naam;
|
103 |
}
|
104 |
|
Backtrace
#0 /var/www/carwashquiz/models/ActiveRecord/Klant.php(92): substr(NULL, 0, 2)
#1 /var/www/carwashquiz/models/View/Index/Abstract.php(72): ActiveRecord_Klant->isTaalFr()
#2 /var/www/carwashquiz/application/index/views/partials/footer.php(13): View_Index_Abstract->isTaalFr()
#3 /var/www/carwashquiz/library/Controller/View.php(215): include('/var/www/carwas...')
#4 /var/www/carwashquiz/library/Controller/View.php(201): Controller_View->render('partials/footer', 'index')
#5 /var/www/carwashquiz/application/index/views/layouts/default.php(24): Controller_View->partial('footer')
#6 /var/www/carwashquiz/library/Controller/View.php(215): include('/var/www/carwas...')
#7 /var/www/carwashquiz/library/Controller/Action.php(105): Controller_View->render('layouts/default')
#8 /var/www/carwashquiz/library/Controller/Dispatcher.php(52): Controller_Action->render()
#9 /var/www/carwashquiz/library/Controller/Front.php(65): Controller_Dispatcher->dispatch(Object(Controller_Front))
#10 /var/www/carwashquiz/www/index.php(23): Controller_Front->run()
#11 {main}
Date: Fri, 29 Mar 2024 03:36:06 +0100 URI: /afgelopen REFERER: https://dodane.carwashquiz.be/