diff --git a/actions.php b/actions.php index 1927ec76a..1f2a67eae 100755 --- a/actions.php +++ b/actions.php @@ -348,7 +348,7 @@ if ($structure->permission == 'rw') { $query = 'SELECT `id`, `html_name` AS `name` FROM `zz_fields` WHERE '.$custom_where; $customs = $dbo->fetchArray($query); - if (!starts_with(post('op'), 'delete')) { + if (!string_starts_with(post('op'), 'delete')) { $values = []; foreach ($customs as $custom) { if (post($custom['name']) !== null) { @@ -357,7 +357,7 @@ if ($structure->permission == 'rw') { } // Inserimento iniziale - if (starts_with(post('op'), 'add')) { + if (string_starts_with(post('op'), 'add')) { // Informazioni di log Filter::set('get', 'id_record', $id_record); @@ -371,7 +371,7 @@ if ($structure->permission == 'rw') { } // Aggiornamento - elseif (starts_with(post('op'), 'update')) { + elseif (string_starts_with(post('op'), 'update')) { $query = 'SELECT `zz_field_record`.`id_field` FROM `zz_field_record` JOIN `zz_fields` ON `zz_fields`.`id` = `zz_field_record`.`id_field` WHERE id_record = '.prepare($id_record).' AND '.$custom_where; $customs_present = $dbo->fetchArray($query); $customs_present = array_column($customs_present, 'id_field'); diff --git a/controller.php b/controller.php index 821068453..f546515bf 100755 --- a/controller.php +++ b/controller.php @@ -96,7 +96,7 @@ echo ' redirectOperation($id_module, isset($id_parent) ? $id_parent : $id_record); // Interfaccia per la modifica dell'ordine e della visibilità delle colonne (Amministratore) -if ($user->is_admin && str_contains($module['option'], '|select|')) { +if ($user->is_admin && string_contains($module['option'], '|select|')) { echo '