Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined variable: user_id in api/functions.php #2436

Closed
simon6162 opened this issue Oct 10, 2018 · 1 comment
Closed

Undefined variable: user_id in api/functions.php #2436

simon6162 opened this issue Oct 10, 2018 · 1 comment

Comments

@simon6162
Copy link

A minor bug when calling delete/item/ via the API - note i have no request[3] element, shows the following returned answer.


\nNotice: Undefined variable: user_id in /teampass/api/functions.php on line 2646
\n{"status":"OK"}

My fix was to move the "user_id = API_USER_ID" to before the check for request[3] so that its always defined.

My git checkout was
d4f9637 (HEAD -> master, tag: 2.1.27.23, origin/master, origin/development, origin/HEAD) 2.1.27

@simon6162 simon6162 changed the title Undefined variable: user_id in <b>api/functions.php Undefined variable: user_id in api/functions.php Oct 10, 2018
nilsteampassnet pushed a commit that referenced this issue Oct 11, 2018
Fix for #2432, #2436
@nilsteampassnet
Copy link
Owner

Please reopen this ticket on need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants