From ab040dd819ddccf3fdf64485b897d38d96e7c049 Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Wed, 19 Oct 2005 17:08:31 +0000 Subject: [PATCH] fix wrt Re: git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-27 --- banana/spool.inc.php | 8 +++++--- po/banana.pot | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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" -- 2.1.4