TypeError
Description
| Message: |
substr() expects parameter 1 to be string, null given |
| File: |
/var/www/walnut-whitelabel/models/ActiveRecord/Klant.php |
| Line: |
246 |
Source Code
| 235 |
{
|
| 236 |
return $this->aanspreekvorm === 'formeel';
|
| 237 |
}
|
| 238 |
|
| 239 |
public function isTaalFr() : bool
|
| 240 |
{
|
| 241 |
if ($this->taal === 'fr') {
|
| 242 |
return true;
|
| 243 |
}
|
| 244 |
|
| 245 |
return $this->taal === 'be'
|
| 246 |
&& (substr(Load::request()->get('HTTP_ACCEPT_LANGUAGE'), 0, 2) === 'fr');
|
| 247 |
}
|
| 248 |
|
| 249 |
public function logo() : string
|
| 250 |
{
|
| 251 |
return 'klant/logo/' . $this->logo;
|
| 252 |
}
|
| 253 |
|
| 254 |
public function naam() : string
|
| 255 |
{
|
| 256 |
return $this->naam;
|
| 257 |
}
|
| 258 |
|
Backtrace
#0 /var/www/walnut-whitelabel/models/ActiveRecord/Klant.php(246): substr(NULL, 0, 2)
#1 /var/www/walnut-whitelabel/models/View/ActieWinnen/Abstract.php(167): ActiveRecord_Klant->isTaalFr()
#2 /var/www/walnut-whitelabel/application/ActieWinnen/views/partials/header/1.php(32): View_ActieWinnen_Abstract->isTaalFr()
#3 /var/www/walnut-whitelabel/library/Controller/View.php(209): include('/var/www/walnut...')
#4 /var/www/walnut-whitelabel/library/Controller/View.php(195): Controller_View->render('partials/header...', 'ActieWinnen')
#5 /var/www/walnut-whitelabel/application/ActieWinnen/views/pages/Index/index.php(6): Controller_View->partial('header/1')
#6 /var/www/walnut-whitelabel/library/Controller/View.php(209): include('/var/www/walnut...')
#7 /var/www/walnut-whitelabel/library/Controller/Action.php(101): Controller_View->render('pages/Index/ind...')
#8 /var/www/walnut-whitelabel/library/Controller/Dispatcher.php(52): Controller_Action->render()
#9 /var/www/walnut-whitelabel/library/Controller/Front.php(65): Controller_Dispatcher->dispatch(Object(Controller_Front))
#10 /var/www/walnut-whitelabel/www/index.php(23): Controller_Front->run()
#11 {main}
Date: Wed, 04 Feb 2026 00:32:42 +0100 URI: / REFERER: none