1
0
Fork 0
forked from blallo/rss-bridge

[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; break;
} }
if(is_null($data[$name])) if(is_null($data[$name])){
echo 'Parameter \'' . $name . '\' is invalid!' . PHP_EOL;
return false; return false;
} }
} }
}
if(!$registered) if(!$registered)
return false; return false;