diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-26 20:03:24 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-26 20:03:24 +0200 |
commit | 5d51118cb2648b37cfcb938e74756588025046cf (patch) | |
tree | c7494ac524063bf511993aee5cf52ef0c9995c61 | |
parent | bf49edde6bbd32fe847b8d56e8fb99c2587d5b3f (diff) | |
download | nextcloud-server-5d51118cb2648b37cfcb938e74756588025046cf.tar.gz nextcloud-server-5d51118cb2648b37cfcb938e74756588025046cf.zip |
fix type of numeric columns
-rw-r--r-- | lib/public/share.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index d1000e7bb9f..a98cfda2089 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -963,6 +963,30 @@ class Share { $switchedItems = array(); $mounts = array(); while ($row = $result->fetchRow()) { + if (isset($row['id'])) { + $row['id']=(int)$row['id']; + } + if (isset($row['share_type'])) { + $row['share_type']=(int)$row['share_type']; + } + if (isset($row['parent'])) { + $row['parent']=(int)$row['parent']; + } + if (isset($row['file_parent'])) { + $row['file_parent']=(int)$row['file_parent']; + } + if (isset($row['file_source'])) { + $row['file_source']=(int)$row['file_source']; + } + if (isset($row['permissions'])) { + $row['permissions']=(int)$row['permissions']; + } + if (isset($row['storage'])) { + $row['storage']=(int)$row['storage']; + } + if (isset($row['stime'])) { + $row['stime']=(int)$row['stime']; + } // Filter out duplicate group shares for users with unique targets if ($row['share_type'] == self::$shareTypeGroupUserUnique && isset($items[$row['parent']])) { $row['share_type'] = self::SHARE_TYPE_GROUP; |