forked from science-ation/science-ation
Oops fix is_array typo
This commit is contained in:
parent
46f292ba16
commit
693fb1e398
2
api.php
2
api.php
@ -1085,7 +1085,7 @@ switch($request[0]) {
|
|||||||
}
|
}
|
||||||
$errors = array();
|
$errors = array();
|
||||||
$mentorList = json_decode($_POST['mentors'],true);
|
$mentorList = json_decode($_POST['mentors'],true);
|
||||||
if(!$is_array($mentorList)) {
|
if(!is_array($mentorList)) {
|
||||||
$ret['status'] = "error";
|
$ret['status'] = "error";
|
||||||
$ret['error'] = "mentors array parameter must be an array of mentors (or an empty array if no mentors)";
|
$ret['error'] = "mentors array parameter must be an array of mentors (or an empty array if no mentors)";
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user