Fix PhpAnalyzer issues
This commit is contained in:
@@ -71,7 +71,7 @@ class Link extends Base
|
||||
|
||||
if ($valid) {
|
||||
|
||||
if ($this->link->create($values['label'], $values['opposite_label'])) {
|
||||
if ($this->link->create($values['label'], $values['opposite_label']) !== false) {
|
||||
$this->session->flash(t('Link added successfully.'));
|
||||
$this->response->redirect($this->helper->url->to('link', 'index'));
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ class Project extends Base
|
||||
|
||||
if ($this->request->getStringParam('duplicate') === 'yes') {
|
||||
$values = array_keys($this->request->getValues());
|
||||
if ($this->projectDuplication->duplicate($project['id'], $values)) {
|
||||
if ($this->projectDuplication->duplicate($project['id'], $values) !== false) {
|
||||
$this->session->flash(t('Project cloned successfully.'));
|
||||
} else {
|
||||
$this->session->flashError(t('Unable to clone this project.'));
|
||||
|
||||
Reference in New Issue
Block a user