From 893364a28955358ad259bfb75798560616ab3d49 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Mon, 25 Oct 2010 00:22:20 +0000 Subject: supporting both basic and flash uploader --- lib/album.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/album.php b/lib/album.php index 916ccbc31..0d5140875 100644 --- a/lib/album.php +++ b/lib/album.php @@ -210,9 +210,11 @@ class TidypicsAlbum extends ElggObject { protected function deleteImages() { // get all the images from this album as long as less than 999 images $images = get_entities("object", "image", $this->guid, '', 999); - foreach ($images as $image) { - if ($image) { - $image->delete(); + if ($images) { + foreach ($images as $image) { + if ($image) { + $image->delete(); + } } } } -- cgit v1.2.3