[Bridge] Return name of the parameter that failed the check

This commit is contained in:
logmanoriginal 2016-09-01 20:59:49 +02:00
parent 7c36b51aa2
commit 47b6cb8937

View file

@ -225,10 +225,12 @@ abstract class BridgeAbstract implements BridgeInterface {
break;
}
if(is_null($data[$name]))
if(is_null($data[$name])){
echo 'Parameter \'' . $name . '\' is invalid!' . PHP_EOL;
return false;
}
}
}
if(!$registered)
return false;