elofgren: VAR FIX: Initialize 'result' in ThumbnailStripField::getflash()

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41947 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 21:13:23 +00:00
parent 2706c3e668
commit 9f633edd49

View File

@ -98,7 +98,7 @@ class ThumbnailStripField extends FormField {
$height = Image::$strip_thumbnail_height - 10; $height = Image::$strip_thumbnail_height - 10;
$flashObjects = DataObject::get("File", "ParentID IN (" . implode(', ', $folderList) . ") AND Filename LIKE '%.swf'"); $flashObjects = DataObject::get("File", "ParentID IN (" . implode(', ', $folderList) . ") AND Filename LIKE '%.swf'");
$result = '';
if($flashObjects) { if($flashObjects) {
$result .= '<ul>'; $result .= '<ul>';
foreach($flashObjects as $flashObject) { foreach($flashObjects as $flashObject) {