Minor - Fix flint issues

pull/2475/head
jmontoyaa 8 years ago
parent 034656cc41
commit 2636a33b09
  1. 1
      plugin/notebookteacher/install.php
  2. 2
      plugin/notebookteacher/src/NotebookTeacher.php
  3. 1
      plugin/notebookteacher/src/NotebookTeacherPlugin.php
  4. 1
      plugin/notebookteacher/start.php
  5. 1
      plugin/notebookteacher/uninstall.php
  6. 1
      plugin/notebookteacher/update.php

@ -7,7 +7,6 @@
*
* @package chamilo.plugin.notebookteacher
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {
die('You must have admin permissions to install plugins');

@ -115,6 +115,7 @@ class NotebookTeacher
if (Database::num_rows($result) != 1) {
return [];
}
return Database::fetch_array($result);
}
@ -186,6 +187,7 @@ class NotebookTeacher
if (Database::affected_rows($result) != 1) {
return false;
}
return true;
}

@ -3,6 +3,7 @@
/**
* Plugin class for the NotebookTeacher plugin.
*
* @package chamilo.plugin.notebookteacher
*
* @author Jose Angel Ruiz <desarrollo@nosolored.com>

@ -4,7 +4,6 @@
*
* @package chamilo.plugin.notebookteacher
*/
$course_plugin = 'notebookteacher';
require_once __DIR__.'/config.php';

@ -8,6 +8,5 @@
*
* @package chamilo.plugin.notebookteacher
*/
require_once __DIR__.'/config.php';
NotebookTeacherPlugin::create()->uninstall();

@ -6,7 +6,6 @@
*
* @package chamilo.plugin.notebookteacher
*/
require_once __DIR__.'/config.php';
if (!api_is_platform_admin()) {

Loading…
Cancel
Save