@ -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.
* @author Jose Angel Ruiz <desarrollo@nosolored.com>
@ -4,7 +4,6 @@
$course_plugin = 'notebookteacher';
@ -8,6 +8,5 @@
NotebookTeacherPlugin::create()->uninstall();
@ -6,7 +6,6 @@