Commit ad658a0c authored by Nico Schallehn's avatar Nico Schallehn

kleine Fehler...

parent 610ec344
......@@ -8,7 +8,7 @@ class MediaDBViewerAPI{
private $API_KEY;
function __construct($KEY) {
if(isset($KEY)){
if(isset($KEY) AND lenth($KEY) == 10){
$API_KEY = $KEY;
$ret = true;
}
......
......@@ -9,10 +9,10 @@ include 'api.class.php';
if($API = new MediaDBViewerAPI($_GET['KEY'])){
$respons = $API->error(1000);
$respons = $API->error(1001);
}
else {
$respons = $API->error(1001);
$respons = $API->error(1002);
}
echo json_encode($respons);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment