diff --git a/appinfo/info.xml b/appinfo/info.xml index 656b543..44365d6 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -1,11 +1,13 @@ - + quicknotes Quick notes + Quick notes with a basic rich text Quick notes with a basic rich text - AGPL - Matias De lellis 0.1.5 + agpl + Matias De lellis QuickNotes office tools @@ -14,7 +16,6 @@ https://github.com/matiasdelellis/quicknotes.git https://user-images.githubusercontent.com/733715/38871311-dac5a80a-4226-11e8-961d-63b276380b6b.png https://user-images.githubusercontent.com/733715/38871255-b07a7d5a-4226-11e8-8403-650cbea50be0.png - 174716 diff --git a/controller/notecontroller.php b/controller/notecontroller.php index 6658a76..460faac 100644 --- a/controller/notecontroller.php +++ b/controller/notecontroller.php @@ -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; diff --git a/service/noteservice.php b/service/noteservice.php index 44a64c6..34e3ac2 100644 --- a/service/noteservice.php +++ b/service/noteservice.php @@ -58,7 +58,7 @@ class NoteService { $note = $this->mapper->find($id, $userId); $note->setTitle($title); $note->setContent($content); - $note->setColor($color) + $note->setColor($color); return $this->mapper->update($note); } catch(Exception $e) { $this->handleException($e);