From 5c825e32068be94bb8b7062949ad90fd389d85ed Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 7 Apr 2010 09:43:46 +0000 Subject: [PATCH] fixed undefined variables in lighty-cron --- scripts/jobs/cron_tasks.inc.http.20.lighttpd.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php b/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php index e31d864c..39b3b0a1 100644 --- a/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php +++ b/scripts/jobs/cron_tasks.inc.http.20.lighttpd.php @@ -459,7 +459,7 @@ class lighttpd { if(!empty($row['error404path'])) { - $error_string.= ' server.error-handler-404 = "' . makeCorrectFile($row['documentroot'] . '/' . $row['error404path']) . '"' . "\n"; + $error_string.= ' server.error-handler-404 = "' . makeCorrectFile($domain['documentroot'] . '/' . $row['error404path']) . '"' . "\n"; } if($row['options_indexes'] != '0') @@ -492,7 +492,7 @@ class lighttpd protected function getDirOptions($domain) { - $query = "SELECT * FROM " . TABLE_PANEL_HTPASSWDS . " WHERE `customerid`='" . $domain[customerid] . "'"; + $query = "SELECT * FROM " . TABLE_PANEL_HTPASSWDS . " WHERE `customerid`='" . $domain['customerid'] . "'"; $result = $this->db->query($query); while($row_htpasswds = $this->db->fetch_array($result))