Minor: Flint fixes

pull/4020/head
Angel Fernando Quiroz Campos 3 years ago
parent 1d29c58a96
commit c0d5249999
  1. 6
      public/plugin/mobidico/start.php

@ -6,7 +6,7 @@ $course_plugin = 'mobidico'; //needed in order to load the plugin lang variables
$plugin = Mobidico::create();
if ($plugin->get('tool_enable') !== 'true') {
if ('true' !== $plugin->get('tool_enable')) {
api_not_allowed(true);
}
@ -33,10 +33,10 @@ try {
);
$status = $response->getStatusCode();
if ($status === 200) {
if (200 === $status) {
$result = json_decode($response->getBody());
if ($result && isset($result->status)) {
if ($result->status == 'OK') {
if ('OK' == $result->status) {
$redirect = $url.'/app/index.html?session='.$result->session;
} else {
api_not_allowed(true);

Loading…
Cancel
Save