From 506a829202be45c511caa4df4e7c5a4c4d0c26da Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Fri, 20 Nov 2015 15:22:09 +0300 Subject: [PATCH] Fix. Poll several mail at once. Problem causes by fax_send.php which change current dir and second call can not finding libraries. --- app/fax/fax_emails.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/fax/fax_emails.php b/app/fax/fax_emails.php index 269827e493..234367e7b8 100644 --- a/app/fax/fax_emails.php +++ b/app/fax/fax_emails.php @@ -210,8 +210,12 @@ if (sizeof($result) != 0) { } //send fax + $cwd = getcwd(); $included = true; require("fax_send.php"); + if($cwd){ + chdir($cwd); + } //reset variables unset($fax_numbers);