Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
12471e53
Commit
12471e53
authored
Aug 01, 2007
by
David Johnson
Browse files
Return proper error.
parent
fd45aa32
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/plabmetrics.php3
View file @
12471e53
...
...
@@ -2111,6 +2111,11 @@ function pm_parseuserquery($q,$debug = false) {
foreach
(
$toka
as
$i
)
{
# echo "needs = " . implode(',',$needs) . "; ";
$sneed
=
whichsat
(
$i
,
$needs
);
if
(
$sneed
==
''
)
{
$errstr
=
"Parser error at token '
$i
'!"
;
break
;
}
$needs
=
$trans
[
$sneed
];
if
(
!
isset
(
$needs
))
{
$needs
=
array
();
...
...
@@ -2118,11 +2123,6 @@ function pm_parseuserquery($q,$debug = false) {
# echo "sneed = $sneed; newneeds = " . implode(',',$needs) . "<br>\n";
if
(
$sneed
==
''
)
{
$errstr
=
"Malformed expression at token '
$i
'!"
;
break
;
}
if
(
$sneed
==
'ocont'
)
{
++
$oc
;
$retq
.
=
'('
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment