From c72d318de5ae571400aff3287c38f0b48571dcfd Mon Sep 17 00:00:00 2001 From: hsur Date: Thu, 7 Dec 2006 16:24:54 +0000 Subject: [PATCH] bug fix. git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@519 1ca29b6e-896d-4ea0-84a5-967f57386b96 --- trunk/NP_TrimImage/NP_TrimImage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/NP_TrimImage/NP_TrimImage.php b/trunk/NP_TrimImage/NP_TrimImage.php index fd3a266..2180767 100644 --- a/trunk/NP_TrimImage/NP_TrimImage.php +++ b/trunk/NP_TrimImage/NP_TrimImage.php @@ -47,7 +47,7 @@ class NP_TrimImage extends NucleusPlugin } function getVersion () { - return '2.1.1'; + return '2.1.2'; } function supportsFeature($what) @@ -211,6 +211,7 @@ class NP_TrimImage extends NucleusPlugin } // print_r($filelist); + $amount = min($amount, count($filelist)); echo '
'; for ($i=0;$i<$amount;$i++) { $itemlink = $this->createGlobalItemLink($filelist[$i][1], ''); // why not createItemLink ? -- 2.11.0