diff --git a/php/modules/photo.php b/php/modules/photo.php index 7e4e4f9..122f194 100755 --- a/php/modules/photo.php +++ b/php/modules/photo.php @@ -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; }