From 3375fe75ac8b0fcd4b5265c9f59ad056e82cc387 Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Tue, 23 Sep 2003 19:13:09 +0000 Subject: [PATCH] path bugfix --- include/spool.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spool.inc.php b/include/spool.inc.php index 7201164..d16b8c8 100644 --- a/include/spool.inc.php +++ b/include/spool.inc.php @@ -241,6 +241,7 @@ class spool { $ids = array_flip($this->ids); unset($ids[$_id]); $this->ids = array_flip($ids); + $prefix_path=(preg_match("/\/scripts\/?$/",getcwd())?"..":"."); $f = fopen("$prefix_path/spool/spool-{$this->group}.dat","w"); fputs($f,serialize($this)); fclose($f); -- 2.1.4