-
Notifications
You must be signed in to change notification settings - Fork 174
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
Visit label as argument can now be used #1475
Visit label as argument can now be used #1475
Conversation
@@ -58,6 +58,7 @@ | |||
$query = "SELECT ID, subprojectID from session"; | |||
if (!empty($argv[1]) && $argv[1]!="confirm") { | |||
$query .=" WHERE visit_label='$argv[1]'"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this query line required? It seems like it's done with a prepared statement below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and if it is, it should be escaped properly..)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed that first $query does not seem to be used at all, I will remove.
Current coverage is
|
…verbose-enough Visit label as argument can now be used
$visit_label was not getting set, so skipping the if statement.
second argument of an array of pselect does not need to be surrounded by single quotes.