Fixed "Downloading a SmartAlbum results in crash" #652

This commit is contained in:
Tobias Reich 2016-11-24 21:01:04 +01:00
parent d050935981
commit 767d97780b

View File

@ -255,8 +255,6 @@ final class Album {
// Execute query // Execute query
$photos = Database::execute(Database::get(), $photos, __METHOD__, __LINE__); $photos = Database::execute(Database::get(), $photos, __METHOD__, __LINE__);
if ($album===null) return false;
// Check if album empty // Check if album empty
if ($photos->num_rows==0) { if ($photos->num_rows==0) {
Log::error(Database::get(), __METHOD__, __LINE__, 'Could not create ZipArchive without images'); Log::error(Database::get(), __METHOD__, __LINE__, 'Could not create ZipArchive without images');