From 1a0465cb57818fd302da8bd7a27b9a78415d1804 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:47:41 -0400 Subject: Fix PhpAnalyzer issues --- app/Controller/Link.php | 2 +- app/Controller/Project.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controller') diff --git a/app/Controller/Link.php b/app/Controller/Link.php index 8eac8494..482e415c 100644 --- a/app/Controller/Link.php +++ b/app/Controller/Link.php @@ -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')); } diff --git a/app/Controller/Project.php b/app/Controller/Project.php index f0847ef2..52c2b870 100644 --- a/app/Controller/Project.php +++ b/app/Controller/Project.php @@ -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.')); -- cgit v1.2.3