PHP 8 updates
add IF condition to avoid 'Deprecated' warning
This commit is contained in:
parent
cdb370dd1c
commit
8e197cd42a
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ class SemanticScuttle_Service_Tag extends SemanticScuttle_DbService
|
||||||
/* normalize the input tags which could be a string or an array*/
|
/* normalize the input tags which could be a string or an array*/
|
||||||
function normalize($tags) {
|
function normalize($tags) {
|
||||||
//clean tags from strange characters
|
//clean tags from strange characters
|
||||||
$tags = str_replace(array('"', '\'', '/'), "_", $tags);
|
//2023-12-20 add IF condition to avoid 'Deprecated' warning
|
||||||
|
if (!is_null($tags)) $tags = str_replace(array('"', '\'', '/'), "_", $tags);
|
||||||
|
|
||||||
//normalize
|
//normalize
|
||||||
if(!is_array($tags)) {
|
if(!is_array($tags)) {
|
||||||
|
|
Loading…
Reference in a new issue