diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-26 22:03:24 +0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-07-04 19:08:50 +0400 |
commit | 6d70b64fabd05a2fbf543713acde84873cd30364 (patch) | |
tree | 1d9ad2fbdca7f7f84d6b3b63dd64cfa137a62a0f /lib/public | |
parent | 9d33ed376d4d52eed5402b6b5ec61811b7a9e3e3 (diff) |
fix type of numeric columns
Diffstat (limited to 'lib/public')
-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 41b41144910..b5442ee2416 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -964,6 +964,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; |