Removed data overhead = less data transferred when opening a photo
This commit is contained in:
parent
61bb527911
commit
30a312679c
@ -36,6 +36,11 @@ function getPhoto($photoID, $albumID) {
|
||||
|
||||
unset($return['album_public']);
|
||||
|
||||
// Remove unused items
|
||||
foreach ($return as $key => $value) {
|
||||
if (is_int($key)) unset($return[$key]);
|
||||
}
|
||||
|
||||
return $return;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user