• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revisione511ef6131d2c527f5bcfafa1ea9564768847b3b (tree)
Time2006-10-13 23:43:55
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

amount が 3 未満の時にエラーになっていたのを修正

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@445 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_ShowBlogs/NP_ShowBlogs.php
+++ b/trunk/NP_ShowBlogs/NP_ShowBlogs.php
@@ -52,7 +52,7 @@ class NP_ShowBlogs extends NucleusPlugin
5252
5353 function getVersion()
5454 {
55- return '2.64';
55+ return '2.641';
5656 }
5757
5858 function getDescription()
@@ -349,12 +349,14 @@ $monthlimit = 0;
349349 }
350350 $q_startpos++;
351351 $q_amount--;
352+ if ($q_amount <= $q_startpos) return;
352353 $onlyone_query = $showQuery . ' LIMIT ' . intval($q_startpos) . ', 1';
353354 $b->showUsingQuery($template, $onlyone_query, 0, 1, 1);
354355 if (mysql_num_rows(sql_query($onlyone_query)) && empty($ads)) {
355356 echo $this->getOption('ads2');
356357 }
357358 //------------SECOND AD CODE END-------------
359+ if ($q_amount <= $q_startpos) return;
358360 $q_startpos++;
359361 $q_amount--;
360362 $second_query = $showQuery . ' LIMIT ' . intval($q_startpos) . ',' . intval($q_amount);
Show on old repository browser