Removed code duplication
This commit is contained in:
parent
092595eb9f
commit
2faf299c73
|
@ -128,12 +128,10 @@ class WebstreamController extends Zend_Controller_Action
|
||||||
|
|
||||||
$id = $request->getParam("id");
|
$id = $request->getParam("id");
|
||||||
|
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
$parameters['id'] = trim($request->getParam("id"));
|
foreach (array('id','length','name','description','url') as $p) {
|
||||||
$parameters['length'] = trim($request->getParam("length"));
|
$parameters[$p] = trim($request->getParam($p));
|
||||||
$parameters['name'] = trim($request->getParam("name"));
|
}
|
||||||
$parameters['description'] = trim($request->getParam("description"));
|
|
||||||
$parameters['url'] = trim($request->getParam("url"));
|
|
||||||
|
|
||||||
if (!$this->isAuthorized($id)) {
|
if (!$this->isAuthorized($id)) {
|
||||||
header("Status: 401 Not Authorized");
|
header("Status: 401 Not Authorized");
|
||||||
|
|
Loading…
Reference in New Issue