MDL-23613 improved coding style
This commit is contained in:
@@ -34,11 +34,6 @@ require_once(dirname(__FILE__).'/lib.php');
|
||||
|
||||
$err = new stdclass;
|
||||
|
||||
if (!isloggedin()) {
|
||||
$err->error = get_string('loggedinnot');
|
||||
die(json_encode($err));
|
||||
}
|
||||
|
||||
/// Parameters
|
||||
$action = optional_param('action', '', PARAM_ALPHA);
|
||||
$repo_id = optional_param('repo_id', 0, PARAM_INT); // Repository ID
|
||||
@@ -70,11 +65,6 @@ if (!confirm_sesskey()) {
|
||||
die(json_encode($err));
|
||||
}
|
||||
|
||||
if (!isloggedin()) {
|
||||
$err->error = get_string('loggedinnot', 'moodle');
|
||||
die(json_encode($err));
|
||||
}
|
||||
|
||||
/// Get repository instance information
|
||||
$sql = 'SELECT i.name, i.typeid, r.type FROM {repository} r, {repository_instances} i WHERE i.id=? AND i.typeid=r.id';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user