mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-08 00:20:37 +00:00
just return error
This commit is contained in:
parent
f8e2263f72
commit
fe229fce4a
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@ if ((isset($argv[1])) && (isset($argv[2]))) {
|
|||
echo "$result[$key]";
|
||||
} else {
|
||||
//key dosnt exist
|
||||
die("Error KEY");
|
||||
die("Error");
|
||||
}
|
||||
} else {
|
||||
//invalid json
|
||||
die("Error JSON");
|
||||
die("Error");
|
||||
}
|
||||
} else {
|
||||
die("Usage: php json.php \"JSON DATA HERE\" \"Key\"");
|
||||
|
|
Loading…
Add table
Reference in a new issue