Do happy to NC app:check.. =)

This commit is contained in:
Matias De lellis committed 2018-12-14 10:45:39 -03:00
1 parent b899ca2381
commit d1d1f1a2f6
3 files changed
+8 -7

No files matched your search

+2 -2
View File
@@ -160,7 +160,7 @@ class NoteController extends Controller {
$newnote = $this->notemapper->update($note);
// Remove old color if necessary
if (($oldcolorid != $hcolor->getId()) &&
if (($oldcolorid !== $hcolor->getId()) &&
(!$this->notemapper->colorIdCount($oldcolorid))) {
$oldcolor = $this->colormapper->find($oldcolorid);
$this->colormapper->delete($oldcolor);
@@ -234,7 +234,7 @@ class NoteController extends Controller {
$shares = $this->notesharemapper->getSharesForNote($noteId);
foreach($shares as $s) {
$shareType = $s->getSharedUser();
if(strlen($shareType) != 0) {
if(strlen($shareType) !== 0) {
if(($i = array_search($shareType, $users)) !== false) {
unset($users[$i]);
$pos_users[] = $shareType;