From: Pierre Habouzit (MadCoder Date: Wed, 19 Oct 2005 17:08:31 +0000 (+0000) Subject: fix wrt Re: X-Git-Tag: 1.8~297 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ab040dd819ddccf3fdf64485b897d38d96e7c049;p=banana.git fix wrt Re: git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-27 --- diff --git a/banana/spool.inc.php b/banana/spool.inc.php index 2df59e4..6c17d62 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -102,9 +102,11 @@ class BananaSpool $first = $banana->maxspool ? max($groupinfo[2]-$banana->maxspool, $groupinfo[1]) : $groupinfo[1]; $last = $groupinfo[2]; if ($this->version == BANANA_SPOOL_VERSION && is_array($this->overview)) { - for ($id = min(array_keys($this->overview)); $id<$first; $id++) { - $this->delid($id, false); - $do_save = true; + if (count($this->overview)) { + for ($id = min(array_keys($this->overview)); $id<$first; $id++) { + $this->delid($id, false); + $do_save = true; + } } if (!empty($this->overview)) { $first = max(array_keys($this->overview))+1; diff --git a/po/banana.pot b/po/banana.pot index a77981a..aed8e86 100644 --- a/po/banana.pot +++ b/po/banana.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-05-24 21:12+0200\n" +"POT-Creation-Date: 2005-10-19 19:06+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"