$q->query("select iduser from user where email='" . $user_email . "'"); if ($q->getNumRows() >= 1) { $q->fetch(); $iduser = $q->getData('iduser'); //echo '<br />Iduser : '******'<br /><br /><br />'; $do_plugin_enable = new PluginEnable(); $id_plugin_enable = $do_plugin_enable->isEnabled("Git Repository", $iduser); if (!empty($id_plugin_enable)) { $do_project_task = new ProjectTask(); $do_project_task->getid($task_id); if ($do_project_task->getNumRows() >= 1) { $q1 = new sqlQuery($conx); $q1->query("select * from project_discuss where idproject_task='" . $task_id[0] . "' and discuss = '" . $note . "' and iduser='******' and date_added ='" . $date_log . "'"); if ($q1->getNumRows() == 0) { $do_project_diss = new ProjectDiscuss(); $do_project_diss->addnew(); $do_project_diss->idproject_task = $task_id; $do_project_diss->discuss = $note; $do_project_diss->date_added = $date_log; if (!empty($time)) { $do_project_diss->hours_work = $time; } $do_project_diss->iduser = $iduser; $do_project_diss->discuss_edit_access = 'user'; $do_project_diss->type = 'Note'; $do_project_diss->add(); } } //task id block ends } // Plugin Enable checking ends