mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Fixed type array warning messages
This commit is contained in:
parent
aecbab5c36
commit
18a993145e
@ -471,16 +471,16 @@ $tags_select_without = [];
|
|||||||
$tag_with_temp = [];
|
$tag_with_temp = [];
|
||||||
$tag_without_temp = [];
|
$tag_without_temp = [];
|
||||||
foreach ($tags as $id_tag => $tag) {
|
foreach ($tags as $id_tag => $tag) {
|
||||||
if ((array_search($id_tag, $tag_with) === false)
|
if (is_array($tag_with) === true
|
||||||
|| (array_search($id_tag, $tag_with) === null)
|
&& ((array_search($id_tag, $tag_with) === false) || (array_search($id_tag, $tag_with) === null))
|
||||||
) {
|
) {
|
||||||
$tags_select_with[$id_tag] = ui_print_truncate_text($tag, 50, true);
|
$tags_select_with[$id_tag] = ui_print_truncate_text($tag, 50, true);
|
||||||
} else {
|
} else {
|
||||||
$tag_with_temp[$id_tag] = ui_print_truncate_text($tag, 50, true);
|
$tag_with_temp[$id_tag] = ui_print_truncate_text($tag, 50, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((array_search($id_tag, $tag_without) === false)
|
if (is_array($tag_without) === true
|
||||||
|| (array_search($id_tag, $tag_without) === null)
|
&& ((array_search($id_tag, $tag_without) === false) || (array_search($id_tag, $tag_without) === null))
|
||||||
) {
|
) {
|
||||||
$tags_select_without[$id_tag] = ui_print_truncate_text($tag, 50, true);
|
$tags_select_without[$id_tag] = ui_print_truncate_text($tag, 50, true);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user