From: Pierre Habouzit (MadCoder Date: Tue, 24 May 2005 09:00:08 +0000 (+0000) Subject: spool fix X-Git-Tag: 1.8~301 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=fb3138fb7d196302ad11020479b16b88bdfc45b1;p=banana.git spool fix git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-23 --- diff --git a/banana/spool.inc.php b/banana/spool.inc.php index f199342..c41cedc 100644 --- a/banana/spool.inc.php +++ b/banana/spool.inc.php @@ -101,7 +101,7 @@ class BananaSpool $do_save = false; $first = $banana->maxspool ? max($groupinfo[2]-$banana->maxspool, $groupinfo[1]) : $groupinfo[1]; $last = $groupinfo[2]; - if ($this->version == BANANA_SPOOL_VERSION) { + 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; diff --git a/po/banana.pot b/po/banana.pot index 84e1d28..79ffa3e 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 10:46+0200\n" +"POT-Creation-Date: 2005-05-24 10:50+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"