OSDN Git Service

bug fix.
authorhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Thu, 7 Dec 2006 16:24:54 +0000 (16:24 +0000)
committerhsur <hsur@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Thu, 7 Dec 2006 16:24:54 +0000 (16:24 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@519 1ca29b6e-896d-4ea0-84a5-967f57386b96

trunk/NP_TrimImage/NP_TrimImage.php

index fd3a266..2180767 100644 (file)
@@ -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 '<div>';
                for ($i=0;$i<$amount;$i++) {
                        $itemlink = $this->createGlobalItemLink($filelist[$i][1], '');  // why not createItemLink ?