fix wrt Re:
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Wed, 19 Oct 2005 17:08:31 +0000 (17:08 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:28 +0000 (00:34 +0100)
git-archimport-id: opensource@polytechnique.org--2005/banana--mainline--1.0--patch-27

banana/spool.inc.php
po/banana.pot

index 2df59e4..6c17d62 100644 (file)
@@ -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;
index a77981a..aed8e86 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"