Forum

Undefined $errors i...
 
Notifications
Retirer tout

Undefined $errors in saveRestictTypes

2 Posts
2 Utilisateurs
0 Reactions
2,182 Vu
(@antonio-grr)
Posts: 84
Active Member
Début du sujet
 
[#4241]

Hi.
This issue has no real effects, but I like clean code.
In saveRestictTypes on $status ='ERROR' you would print $errors variable , that is uninitialized. It's not dangerous as that condition has already been handled in previous lines, where a $status ='ERROR' exits the action.
Best regards


 
Posté : 29 Mar PM 18:033
(@babynus)
Posts: 14952
Membre Admin
 

You're right.
$error has been replaced with $result (last result message that should contain the error).
But the lines will then not been reached as code exists on first error 😉

Thanks for reporting.


 
Posté : 29 Mar PM 19:033
Share:
Retour en haut