News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Where i should defined this variable?

Started by Jotade29, March 20, 2025, 05:10:37 PM

Previous topic - Next topic

Jotade29

V: 2.0.19

In profile-modify, in the part.

'secret_answer_2' => array(
'type' => 'text',
'label' => 'Verifica respuesta secreta',
'enabled' => empty($cur_profile['openid_uri']),
'size' => 20,
'value2' => $value2,
'permission' => 'profile_identity',
'is_dummy' => true,
),

In error_logs, one error say me: undefined $value2. Where should i defined this variable?

Before array for example? $value2 = ''; ?
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Sir Osis of Liver

If you do that and $value2 has a value, it will be removed and possibly cause a problem.  Try this before the array -


if (!isset($value2))
$value2 = null;

When in Emor, do as the Snamors.
                              - D. Lister

Jotade29

Quote from: Sir Osis of Liver on March 20, 2025, 05:31:19 PMIf you do that and $value2 has a value, it will be removed and possibly cause a problem.  Try this before the array -


if (!isset($value2))
$value2 = null;



Thnxx uu
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Advertisement: