Forum

Undefined $errors i...
 
Notifications
Clear all

Undefined $errors in saveRestictTypes

2 Posts
2 Users
0 Reactions
2,183 Views
(@antonio-grr)
Posts: 84
Active Member
Topic starter
 
[#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


 
Posted : 29 Mar 2017 18H28
(@babynus)
Posts: 14952
Member 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.


 
Posted : 29 Mar 2017 19H11
Share:

Scroll to Top