summaryrefslogtreecommitdiffstats
path: root/external/folderapi.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-02 22:46:54 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-02 22:46:54 +0200
commitb8a2a027440b753354e4715d26cfcc87fa5c8f4e (patch)
tree2fce939e89585f3758868adead7daa6d8adfd336 /external/folderapi.php
parenta8a1a4addb0b5977acfe4a31e6c6b8af679728e2 (diff)
implemented last api method, fix #105
Diffstat (limited to 'external/folderapi.php')
-rw-r--r--external/folderapi.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/folderapi.php b/external/folderapi.php
index 36ef9c35f..642ca1968 100644
--- a/external/folderapi.php
+++ b/external/folderapi.php
@@ -81,7 +81,7 @@ class FolderAPI extends Controller {
public function delete() {
$userId = $this->api->getUserId();
- $folderId = $this->params('folderId');
+ $folderId = (int) $this->params('folderId');
try {
$this->folderBusinessLayer->delete($folderId, $userId);
@@ -95,7 +95,7 @@ class FolderAPI extends Controller {
public function update() {
$userId = $this->api->getUserId();
- $folderId = $this->params('folderId');
+ $folderId = (int) $this->params('folderId');
$folderName = $this->params('name');
try {