summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-09 17:40:59 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-10 09:14:26 +0200
commitb022ccb86371e774b63a8000f7ea2207c2da225e (patch)
treeebef3e2b3fa0b1abe3c807b3c659ca7c3174dc69 /apps/gallery/lib
parente77ba0280a0ebceef348750f5ff9738012e2b8fb (diff)
downloadnextcloud-server-b022ccb86371e774b63a8000f7ea2207c2da225e.tar.gz
nextcloud-server-b022ccb86371e774b63a8000f7ea2207c2da225e.zip
Whitespace fixes
Diffstat (limited to 'apps/gallery/lib')
-rwxr-xr-xapps/gallery/lib/album.php26
1 files changed, 12 insertions, 14 deletions
diff --git a/apps/gallery/lib/album.php b/apps/gallery/lib/album.php
index 27d40cdb91f..ac6cacbe01f 100755
--- a/apps/gallery/lib/album.php
+++ b/apps/gallery/lib/album.php
@@ -79,7 +79,7 @@ class OC_Gallery_Album {
$sql .= ' AND parent_path = ?';
$args[] = $parent;
}
- $order = OCP\Config::getUserValue($owner, 'gallery', 'order', 'ASC');
+ $order = OCP\Config::getUserValue($owner, 'gallery', 'order', 'ASC');
$sql .= ' ORDER BY album_name ' . $order;
$stmt = OCP\DB::prepare($sql);
@@ -98,19 +98,17 @@ class OC_Gallery_Album {
}
public static function getAlbumSize($id){
- $sql = 'SELECT COUNT(*) as size FROM *PREFIX*gallery_photos WHERE album_id = ?';
- $stmt = OCP\DB::prepare($sql);
- $result=$stmt->execute(array($id))->fetchRow();
- return $result['size'];
+ $sql = 'SELECT COUNT(*) as size FROM *PREFIX*gallery_photos WHERE album_id = ?';
+ $stmt = OCP\DB::prepare($sql);
+ $result=$stmt->execute(array($id))->fetchRow();
+ return $result['size'];
}
- public static function getIntermediateGallerySize($path) {
- $path .= '%';
- $sql = 'SELECT COUNT(*) as size FROM *PREFIX*gallery_photos photos, *PREFIX*gallery_albums albums WHERE photos.album_id = albums.album_id AND uid_owner = ? AND file_path LIKE ?';
- $stmt = OCP\DB::prepare($sql);
- $result = $stmt->execute(array(OCP\USER::getUser(), $path))->fetchRow();
- return $result['size'];
- }
+ public static function getIntermediateGallerySize($path) {
+ $path .= '%';
+ $sql = 'SELECT COUNT(*) as size FROM *PREFIX*gallery_photos photos, *PREFIX*gallery_albums albums WHERE photos.album_id = albums.album_id AND uid_owner = ? AND file_path LIKE ?';
+ $stmt = OCP\DB::prepare($sql);
+ $result = $stmt->execute(array(OCP\USER::getUser(), $path))->fetchRow();
+ return $result['size'];
+ }
}
-
-?>