[Git][codeigniterpower/codeigniterpower][codeigniter2] Fix replace when php does not property interpreted null values for text

0 views
Skip to first unread message

Герхард PICCORO Lenz McKAY (@mckaygerhard)

unread,
Feb 6, 2024, 2:41:53 PMFeb 6
to venenux...@googlegroups.com

Герхард PICCORO Lenz McKAY pushed to branch codeigniter2 at codeigniterpower / codeigniterpower

Commits:

  • 43dc4c25
    by mckaygerhard at 2024-02-06T15:36:59-04:00
    Fix replace when php does not property interpreted null values for text
    
    * mostly need for php8 only..
    

1 changed file:

Changes:

  • appsys/helpers/text_helper.php
    ... ... @@ -375,6 +375,8 @@ if ( ! function_exists('convert_accented_characters'))
    375 375
     			include(APPPATH.'config/foreign_chars.php');
    
    376 376
     		}
    
    377 377
     
    
    378
    +		$str = (gettype($str) === 'NULL') ? '' : $str;
    
    379
    +
    
    378 380
     		if ( ! isset($foreign_characters))
    
    379 381
     		{
    
    380 382
     			return $str;
    


View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help

Reply all
Reply to author
Forward
0 new messages